
var EventUtil={
addHandler:function(element,type,handler){
		if (element.addEventListener) {
			element.addEventListener(type,handler,false);
		}else if(element.attchEvent){
         element.attchEvent("on"+type,handler);
		}else{
			element["on"+type]=handler;
		}
	},
	removeHandler:function(element,type,handler){
			if (element.removeEventListener) {
			element.removeEventListener(type,handler,false);
		}else if(element.detattchEvent){
         element.detattchEvent("on"+type,handler);
		}else{
			element["on"+type]=null;
		}
	},
	getEvent:function(event){
		return event ? event : window.event;
	},
	getTarget:function(event){
		return event.target || event.srcElement;
	},
	preventDefault:function(event){
		if(event.preventDefault){
			event.preventDefault();
		}else{
            event.returnValue=false;
		}
	},
    stopPropagation: function(event){
    	if(event.stopPropagation){
			event.stopPropagation;
		}else{
            event.cancelBubble=true;
		}
    }
};
function init2() {  
var myDate = new Date();
 var hour = myDate.getHours();
    var x=document.getElementById('fllow').getElementsByTagName('div').length-parseInt(hour);
    for(var i=x;i<24;i++){
 var y=document.getElementById('fllow').getElementsByTagName('div');
 console.log(y[0]);
 y[i].style.display="none";
}   
  
} 


function init() {  
var myDate = new Date();
 var hour = myDate.getHours();
    var x=document.getElementById('fllow').getElementsByTagName('div').length-parseInt(hour);
    for(var i=x;i<24;i++){
 var y=document.getElementById('fllow').getElementsByTagName('div');
 console.log(y[0]);
 y[i].style.display="block";
}   
  
}         
window.onload=function () {
  var myDate = new Date();
 var hour = myDate.getHours();
init2();

    
 var day=myDate.getMonth()+1+"."+myDate.getDate();
var request = new XMLHttpRequest();
   request.open("GET", "http://dev.lanbaoo.com/api/weather/forecast?lat=0&lng=0&city&cityId=CN101270101" ,true);
   request.send();
   request.onreadystatechange = function() {
      if (request.readyState===4) {
         if (request.status===200) { 
            var data = JSON.parse(request.responseText);
            // if (data.id) { 
            //  alert(data.city);
               
               
            // } else {
            //     alert("出现错误：") ;
            // }
            // document.getElementById("sel1").innerHTML=data.forecastDaily[0].weekDay;
            // document.getElementById("sel3").innerHTML=data.forecastDaily[0].tmpMax+"°";
            // document.getElementById("sel4").innerHTML=data.forecastDaily[0].tmpMin+"°";


            //  document.getElementById("sel5").innerHTML=data.forecastDaily[1].weekDay;
            // document.getElementById("sel7").innerHTML=data.forecastDaily[1].tmpMax+"°";
            // document.getElementById("sel8").innerHTML=data.forecastDaily[1].tmpMin+"°";


            //  document.getElementById("sel9").innerHTML=data.forecastDaily[2].weekDay;
            // document.getElementById("sel11").innerHTML=data.forecastDaily[2].tmpMax+"°";
            // document.getElementById("sel12").innerHTML=data.forecastDaily[2].tmpMin+"°";


            //  document.getElementById("sel13").innerHTML=data.forecastDaily[3].weekDay;
            // document.getElementById("sel15").innerHTML=data.forecastDaily[3].tmpMax+"°";
            // document.getElementById("sel16").innerHTML=data.forecastDaily[3].tmpMin+"°";


            //  document.getElementById("sel17").innerHTML=data.forecastDaily[4].weekDay;
            // document.getElementById("sel19").innerHTML=data.forecastDaily[4].tmpMax+"°";
            // document.getElementById("sel20").innerHTML=data.forecastDaily[4].tmpMin+"°";


            //  document.getElementById("sel21").innerHTML=data.forecastDaily[5].weekDay;
            // document.getElementById("sel23").innerHTML=data.forecastDaily[5].tmpMax+"°";
            // document.getElementById("sel24").innerHTML=data.forecastDaily[5].tmpMin+"°";


            //  document.getElementById("sel25").innerHTML=data.forecastDaily[6].weekDay;
            // document.getElementById("sel27").innerHTML=data.forecastDaily[6].tmpMax+"°";
            // document.getElementById("sel28").innerHTML=data.forecastDaily[6].tmpMin+"°";
             document.getElementById("page").innerHTML=data.current.condTxt;
             document.getElementById("page2").innerHTML=data.current.windDir+data.current.windSc;
            document.getElementById("seven").getElementsByTagName('p')[0].innerHTML=data.forecastDaily[0].weekDay;
            document.getElementById("seven").getElementsByTagName('p')[1].innerHTML=day;
            document.getElementById("seven").getElementsByTagName('p')[2].innerHTML=data.forecastDaily[0].tmpMax+"°";
            document.getElementById("seven").getElementsByTagName('p')[3].innerHTML=data.forecastDaily[0].tmpMin+"°";

            document.getElementById("one").getElementsByTagName('p')[0].innerHTML=data.forecastDaily[1].weekDay;
            document.getElementById("one").getElementsByTagName('p')[1].innerHTML=myDate.getMonth()+1+"."+parseInt(myDate.getDate()-6);
            document.getElementById("one").getElementsByTagName('p')[2].innerHTML=data.forecastDaily[1].tmpMax+"°";
            document.getElementById("one").getElementsByTagName('p')[3].innerHTML=data.forecastDaily[1].tmpMin+"°";

            document.getElementById("two").getElementsByTagName('p')[0].innerHTML=data.forecastDaily[2].weekDay;
            document.getElementById("two").getElementsByTagName('p')[1].innerHTML=myDate.getMonth()+1+"."+parseInt(myDate.getDate()-5);
            document.getElementById("two").getElementsByTagName('p')[2].innerHTML=data.forecastDaily[2].tmpMax+"°";
            document.getElementById("two").getElementsByTagName('p')[3].innerHTML=data.forecastDaily[2].tmpMin+"°";

            document.getElementById("three").getElementsByTagName('p')[0].innerHTML=data.forecastDaily[3].weekDay;
            document.getElementById("three").getElementsByTagName('p')[1].innerHTML=myDate.getMonth()+1+"."+parseInt(myDate.getDate()-4);
            document.getElementById("three").getElementsByTagName('p')[2].innerHTML=data.forecastDaily[3].tmpMax+"°";
            document.getElementById("three").getElementsByTagName('p')[3].innerHTML=data.forecastDaily[3].tmpMin+"°";

            document.getElementById("four").getElementsByTagName('p')[0].innerHTML=data.forecastDaily[4].weekDay;
            document.getElementById("four").getElementsByTagName('p')[1].innerHTML=myDate.getMonth()+1+"."+parseInt(myDate.getDate()-3);
            document.getElementById("four").getElementsByTagName('p')[2].innerHTML=data.forecastDaily[4].tmpMax+"°";
            document.getElementById("four").getElementsByTagName('p')[3].innerHTML=data.forecastDaily[4].tmpMin+"°";

            document.getElementById("five").getElementsByTagName('p')[0].innerHTML=data.forecastDaily[5].weekDay;
            document.getElementById("five").getElementsByTagName('p')[1].innerHTML=myDate.getMonth()+1+"."+parseInt(myDate.getDate()-2);
            document.getElementById("five").getElementsByTagName('p')[2].innerHTML=data.forecastDaily[5].tmpMax+"°";
            document.getElementById("five").getElementsByTagName('p')[3].innerHTML=data.forecastDaily[5].tmpMin+"°";

            document.getElementById("six").getElementsByTagName('p')[0].innerHTML=data.forecastDaily[6].weekDay;
            document.getElementById("six").getElementsByTagName('p')[1].innerHTML=myDate.getMonth()+1+"."+parseInt(myDate.getDate()-1);
            document.getElementById("six").getElementsByTagName('p')[2].innerHTML=data.forecastDaily[6].tmpMax+"°";
            document.getElementById("six").getElementsByTagName('p')[3].innerHTML=data.forecastDaily[6].tmpMin+"°";
            document.getElementById("zt2").innerHTML=data.forecastDaily[0].phaseName;
            document.getElementById("zt2").innerHTML=data.forecastDaily[0].phaseName;
            document.getElementById("zt3").innerHTML=data.forecastDaily[0].tideName;
            document.getElementById("pt1").innerHTML=data.forecastDaily[0].presTime.split(",")[0];
            document.getElementById("pt3").innerHTML=data.forecastDaily[0].presTime.split(",")[1];
            document.getElementById("pt5").innerHTML=data.forecastDaily[0].presTime.split(",")[2];
            document.getElementById("pt7").innerHTML=data.forecastDaily[0].presTime.split(",")[3];
            document.getElementById("pt2").innerHTML=data.forecastDaily[0].presValue.split(",")[0];
            document.getElementById("pt4").innerHTML=data.forecastDaily[0].presValue.split(",")[1];
            document.getElementById("pt6").innerHTML=data.forecastDaily[0].presValue.split(",")[2];
            document.getElementById("pt8").innerHTML=data.forecastDaily[0].presValue.split(",")[3];
             document.getElementById("cl1").innerHTML=data.forecastDaily[0].sunrise.split(":")[0]+":"+data.forecastDaily[0].sunrise.split(":")[1];
            document.getElementById("cl2").innerHTML=data.forecastDaily[0].sunset.split(":")[0]+":"+data.forecastDaily[0].sunset.split(":")[1];
            document.getElementById("li1").innerHTML=data.forecastDaily[0].forecastHourly[0].gap;
             document.getElementById("li2").innerHTML=data.forecastDaily[0].forecastHourly[0].tmp+"°";
            document.getElementById("li3").innerHTML=data.forecastDaily[0].forecastHourly[0].hum+"%";
            document.getElementById("li4").innerHTML=data.forecastDaily[0].forecastHourly[0].pres+"hpa";
            document.getElementById("li5").innerHTML=data.forecastDaily[0].forecastHourly[0].pop+"%";
            document.getElementById("li6").innerHTML=data.forecastDaily[0].forecastHourly[0].windDir;
            document.getElementById("li7").innerHTML=data.forecastDaily[0].forecastHourly[0].windSpd+"km/h";
            document.getElementById("li8").innerHTML=data.forecastDaily[0].forecastHourly[0].windSc;

            document.getElementById("li9").innerHTML=data.forecastDaily[0].forecastHourly[1].gap;
             document.getElementById("li10").innerHTML=data.forecastDaily[0].forecastHourly[1].tmp+"°";
            document.getElementById("li11").innerHTML=data.forecastDaily[0].forecastHourly[1].hum+"%";
            document.getElementById("li12").innerHTML=data.forecastDaily[0].forecastHourly[1].pres+"hpa";
            document.getElementById("li13").innerHTML=data.forecastDaily[0].forecastHourly[1].pop+"%";
            document.getElementById("li14").innerHTML=data.forecastDaily[0].forecastHourly[1].windDir;
            document.getElementById("li15").innerHTML=data.forecastDaily[0].forecastHourly[1].windSpd+"km/h";
            document.getElementById("li16").innerHTML=data.forecastDaily[0].forecastHourly[1].windSc;

            document.getElementById("li17").innerHTML=data.forecastDaily[0].forecastHourly[2].gap;
             document.getElementById("li18").innerHTML=data.forecastDaily[0].forecastHourly[2].tmp+"°";
            document.getElementById("li19").innerHTML=data.forecastDaily[0].forecastHourly[2].hum+"%";
            document.getElementById("li20").innerHTML=data.forecastDaily[0].forecastHourly[2].pres+"hpa";
            document.getElementById("li21").innerHTML=data.forecastDaily[0].forecastHourly[2].pop+"%";
            document.getElementById("li22").innerHTML=data.forecastDaily[0].forecastHourly[2].windDir;
            document.getElementById("li23").innerHTML=data.forecastDaily[0].forecastHourly[2].windSpd+"km/h";
            document.getElementById("li24").innerHTML=data.forecastDaily[0].forecastHourly[2].windSc;

            document.getElementById("li25").innerHTML=data.forecastDaily[0].forecastHourly[3].gap;
             document.getElementById("li26").innerHTML=data.forecastDaily[0].forecastHourly[3].tmp+"°";
            document.getElementById("li27").innerHTML=data.forecastDaily[0].forecastHourly[3].hum+"%";
            document.getElementById("li28").innerHTML=data.forecastDaily[0].forecastHourly[3].pres+"hpa";
            document.getElementById("li29").innerHTML=data.forecastDaily[0].forecastHourly[3].pop+"%";
            document.getElementById("li30").innerHTML=data.forecastDaily[0].forecastHourly[3].windDir;
            document.getElementById("li31").innerHTML=data.forecastDaily[0].forecastHourly[3].windSpd+"km/h";
            document.getElementById("li32").innerHTML=data.forecastDaily[0].forecastHourly[3].windSc;

            document.getElementById("li33").innerHTML=data.forecastDaily[0].forecastHourly[4].gap;
             document.getElementById("li34").innerHTML=data.forecastDaily[0].forecastHourly[4].tmp+"°";
            document.getElementById("li35").innerHTML=data.forecastDaily[0].forecastHourly[4].hum+"%";
            document.getElementById("li36").innerHTML=data.forecastDaily[0].forecastHourly[4].pres+"hpa";
            document.getElementById("li37").innerHTML=data.forecastDaily[0].forecastHourly[4].pop+"%";
            document.getElementById("li38").innerHTML=data.forecastDaily[0].forecastHourly[4].windDir;
            document.getElementById("li39").innerHTML=data.forecastDaily[0].forecastHourly[4].windSpd+"km/h";
            document.getElementById("li40").innerHTML=data.forecastDaily[0].forecastHourly[4].windSc;

            document.getElementById("li41").innerHTML=data.forecastDaily[0].forecastHourly[5].gap;
             document.getElementById("li42").innerHTML=data.forecastDaily[0].forecastHourly[5].tmp+"°";
            document.getElementById("li43").innerHTML=data.forecastDaily[0].forecastHourly[5].hum+"%";
            document.getElementById("li44").innerHTML=data.forecastDaily[0].forecastHourly[5].pres+"hpa";
            document.getElementById("li45").innerHTML=data.forecastDaily[0].forecastHourly[5].pop+"%";
            document.getElementById("li46").innerHTML=data.forecastDaily[0].forecastHourly[5].windDir;
            document.getElementById("li47").innerHTML=data.forecastDaily[0].forecastHourly[5].windSpd+"km/h";
            document.getElementById("li48").innerHTML=data.forecastDaily[0].forecastHourly[5].windSc;

            document.getElementById("li49").innerHTML=data.forecastDaily[0].forecastHourly[6].gap;
             document.getElementById("li50").innerHTML=data.forecastDaily[0].forecastHourly[6].tmp+"°";
            document.getElementById("li51").innerHTML=data.forecastDaily[0].forecastHourly[6].hum+"%";
            document.getElementById("li52").innerHTML=data.forecastDaily[0].forecastHourly[6].pres+"hpa";
            document.getElementById("li53").innerHTML=data.forecastDaily[0].forecastHourly[6].pop+"%";
            document.getElementById("li54").innerHTML=data.forecastDaily[0].forecastHourly[6].windDir;
            document.getElementById("li55").innerHTML=data.forecastDaily[0].forecastHourly[6].windSpd+"km/h";
            document.getElementById("li56").innerHTML=data.forecastDaily[0].forecastHourly[6].windSc;

            document.getElementById("li57").innerHTML=data.forecastDaily[0].forecastHourly[7].gap;
             document.getElementById("li58").innerHTML=data.forecastDaily[0].forecastHourly[7].tmp+"°";
            document.getElementById("li59").innerHTML=data.forecastDaily[0].forecastHourly[7].hum+"%";
            document.getElementById("li60").innerHTML=data.forecastDaily[0].forecastHourly[7].pres+"hpa";
            document.getElementById("li61").innerHTML=data.forecastDaily[0].forecastHourly[7].pop+"%";
            document.getElementById("li62").innerHTML=data.forecastDaily[0].forecastHourly[7].windDir;
            document.getElementById("li63").innerHTML=data.forecastDaily[0].forecastHourly[7].windSpd+"km/h";
            document.getElementById("li64").innerHTML=data.forecastDaily[0].forecastHourly[7].windSc;

            document.getElementById("li65").innerHTML=data.forecastDaily[0].forecastHourly[8].gap;
             document.getElementById("li66").innerHTML=data.forecastDaily[0].forecastHourly[8].tmp+"°";
            document.getElementById("li67").innerHTML=data.forecastDaily[0].forecastHourly[8].hum+"%";
            document.getElementById("li68").innerHTML=data.forecastDaily[0].forecastHourly[8].pres+"hpa";
            document.getElementById("li69").innerHTML=data.forecastDaily[0].forecastHourly[8].pop+"%";
            document.getElementById("li70").innerHTML=data.forecastDaily[0].forecastHourly[8].windDir;
            document.getElementById("li71").innerHTML=data.forecastDaily[0].forecastHourly[8].windSpd+"km/h";
            document.getElementById("li72").innerHTML=data.forecastDaily[0].forecastHourly[8].windSc;

            document.getElementById("li73").innerHTML=data.forecastDaily[0].forecastHourly[9].gap;
             document.getElementById("li74").innerHTML=data.forecastDaily[0].forecastHourly[9].tmp+"°";
            document.getElementById("li75").innerHTML=data.forecastDaily[0].forecastHourly[9].hum+"%";
            document.getElementById("li76").innerHTML=data.forecastDaily[0].forecastHourly[9].pres+"hpa";
            document.getElementById("li77").innerHTML=data.forecastDaily[0].forecastHourly[9].pop+"%";
            document.getElementById("li78").innerHTML=data.forecastDaily[0].forecastHourly[9].windDir;
            document.getElementById("li79").innerHTML=data.forecastDaily[0].forecastHourly[9].windSpd+"km/h";
            document.getElementById("li80").innerHTML=data.forecastDaily[0].forecastHourly[9].windSc;

            document.getElementById("li81").innerHTML=data.forecastDaily[0].forecastHourly[10].gap;
             document.getElementById("li82").innerHTML=data.forecastDaily[0].forecastHourly[10].tmp+"°";
            document.getElementById("li83").innerHTML=data.forecastDaily[0].forecastHourly[10].hum+"%";
            document.getElementById("li84").innerHTML=data.forecastDaily[0].forecastHourly[10].pres+"hpa";
            document.getElementById("li85").innerHTML=data.forecastDaily[0].forecastHourly[10].pop+"%";
            document.getElementById("li86").innerHTML=data.forecastDaily[0].forecastHourly[10].windDir;
            document.getElementById("li87").innerHTML=data.forecastDaily[0].forecastHourly[10].windSpd+"km/h";
            document.getElementById("li88").innerHTML=data.forecastDaily[0].forecastHourly[10].windSc;

            document.getElementById("li89").innerHTML=data.forecastDaily[0].forecastHourly[11].gap;
             document.getElementById("li90").innerHTML=data.forecastDaily[0].forecastHourly[11].tmp+"°";
            document.getElementById("li91").innerHTML=data.forecastDaily[0].forecastHourly[11].hum+"%";
            document.getElementById("li92").innerHTML=data.forecastDaily[0].forecastHourly[11].pres+"hpa";
            document.getElementById("li93").innerHTML=data.forecastDaily[0].forecastHourly[11].pop+"%";
            document.getElementById("li94").innerHTML=data.forecastDaily[0].forecastHourly[11].windDir;
            document.getElementById("li95").innerHTML=data.forecastDaily[0].forecastHourly[11].windSpd+"km/h";
            document.getElementById("li96").innerHTML=data.forecastDaily[0].forecastHourly[11].windSc;

            document.getElementById("li97").innerHTML=data.forecastDaily[0].forecastHourly[12].gap;
             document.getElementById("li98").innerHTML=data.forecastDaily[0].forecastHourly[12].tmp+"°";
            document.getElementById("li99").innerHTML=data.forecastDaily[0].forecastHourly[12].hum+"%";
            document.getElementById("li100").innerHTML=data.forecastDaily[0].forecastHourly[12].pres+"hpa";
            document.getElementById("li101").innerHTML=data.forecastDaily[0].forecastHourly[12].pop+"%";
            document.getElementById("li102").innerHTML=data.forecastDaily[0].forecastHourly[12].windDir;
            document.getElementById("li103").innerHTML=data.forecastDaily[0].forecastHourly[12].windSpd+"km/h";
            document.getElementById("li104").innerHTML=data.forecastDaily[0].forecastHourly[12].windSc;

            document.getElementById("li105").innerHTML=data.forecastDaily[0].forecastHourly[13].gap;
             document.getElementById("li106").innerHTML=data.forecastDaily[0].forecastHourly[13].tmp+"°";
            document.getElementById("li107").innerHTML=data.forecastDaily[0].forecastHourly[13].hum+"%";
            document.getElementById("li108").innerHTML=data.forecastDaily[0].forecastHourly[13].pres+"hpa";
            document.getElementById("li109").innerHTML=data.forecastDaily[0].forecastHourly[13].pop+"%";
            document.getElementById("li110").innerHTML=data.forecastDaily[0].forecastHourly[13].windDir;
            document.getElementById("li111").innerHTML=data.forecastDaily[0].forecastHourly[13].windSpd+"km/h";
            document.getElementById("li112").innerHTML=data.forecastDaily[0].forecastHourly[13].windSc;

            document.getElementById("li113").innerHTML=data.forecastDaily[0].forecastHourly[14].gap;
             document.getElementById("li114").innerHTML=data.forecastDaily[0].forecastHourly[14].tmp+"°";
            document.getElementById("li115").innerHTML=data.forecastDaily[0].forecastHourly[14].hum+"%";
            document.getElementById("li116").innerHTML=data.forecastDaily[0].forecastHourly[14].pres+"hpa";
            document.getElementById("li117").innerHTML=data.forecastDaily[0].forecastHourly[14].pop+"%";
            document.getElementById("li118").innerHTML=data.forecastDaily[0].forecastHourly[14].windDir;
            document.getElementById("li119").innerHTML=data.forecastDaily[0].forecastHourly[14].windSpd+"km/h";
            document.getElementById("li120").innerHTML=data.forecastDaily[0].forecastHourly[14].windSc;

            document.getElementById("li121").innerHTML=data.forecastDaily[0].forecastHourly[15].gap;
             document.getElementById("li122").innerHTML=data.forecastDaily[0].forecastHourly[15].tmp+"°";
            document.getElementById("li123").innerHTML=data.forecastDaily[0].forecastHourly[15].hum+"%";
            document.getElementById("li124").innerHTML=data.forecastDaily[0].forecastHourly[15].pres+"hpa";
            document.getElementById("li125").innerHTML=data.forecastDaily[0].forecastHourly[15].pop+"%";
            document.getElementById("li126").innerHTML=data.forecastDaily[0].forecastHourly[15].windDir;
            document.getElementById("li127").innerHTML=data.forecastDaily[0].forecastHourly[15].windSpd+"km/h";
            document.getElementById("li128").innerHTML=data.forecastDaily[0].forecastHourly[15].windSc;

            document.getElementById("li129").innerHTML=data.forecastDaily[0].forecastHourly[16].gap;
             document.getElementById("li130").innerHTML=data.forecastDaily[0].forecastHourly[16].tmp+"°";
            document.getElementById("li131").innerHTML=data.forecastDaily[0].forecastHourly[16].hum+"%";
            document.getElementById("li132").innerHTML=data.forecastDaily[0].forecastHourly[16].pres+"hpa";
            document.getElementById("li133").innerHTML=data.forecastDaily[0].forecastHourly[16].pop+"%";
            document.getElementById("li134").innerHTML=data.forecastDaily[0].forecastHourly[16].windDir;
            document.getElementById("li135").innerHTML=data.forecastDaily[0].forecastHourly[16].windSpd+"km/h";
            document.getElementById("li136").innerHTML=data.forecastDaily[0].forecastHourly[16].windSc;

            document.getElementById("li137").innerHTML=data.forecastDaily[0].forecastHourly[17].gap;
             document.getElementById("li138").innerHTML=data.forecastDaily[0].forecastHourly[17].tmp+"°";
            document.getElementById("li139").innerHTML=data.forecastDaily[0].forecastHourly[17].hum+"%";
            document.getElementById("li140").innerHTML=data.forecastDaily[0].forecastHourly[17].pres+"hpa";
            document.getElementById("li141").innerHTML=data.forecastDaily[0].forecastHourly[17].pop+"%";
            document.getElementById("li142").innerHTML=data.forecastDaily[0].forecastHourly[17].windDir;
            document.getElementById("li143").innerHTML=data.forecastDaily[0].forecastHourly[17].windSpd+"km/h";
            document.getElementById("li144").innerHTML=data.forecastDaily[0].forecastHourly[17].windSc;

            document.getElementById("li145").innerHTML=data.forecastDaily[0].forecastHourly[18].gap;
             document.getElementById("li146").innerHTML=data.forecastDaily[0].forecastHourly[18].tmp+"°";
            document.getElementById("li147").innerHTML=data.forecastDaily[0].forecastHourly[18].hum+"%";
            document.getElementById("li148").innerHTML=data.forecastDaily[0].forecastHourly[18].pres+"hpa";
            document.getElementById("li149").innerHTML=data.forecastDaily[0].forecastHourly[18].pop+"%";
            document.getElementById("li150").innerHTML=data.forecastDaily[0].forecastHourly[18].windDir;
            document.getElementById("li151").innerHTML=data.forecastDaily[0].forecastHourly[18].windSpd+"km/h";
            document.getElementById("li152").innerHTML=data.forecastDaily[0].forecastHourly[18].windSc;

            document.getElementById("li153").innerHTML=data.forecastDaily[0].forecastHourly[19].gap;
             document.getElementById("li154").innerHTML=data.forecastDaily[0].forecastHourly[19].tmp+"°";
            document.getElementById("li155").innerHTML=data.forecastDaily[0].forecastHourly[19].hum+"%";
            document.getElementById("li156").innerHTML=data.forecastDaily[0].forecastHourly[19].pres+"hpa";
            document.getElementById("li157").innerHTML=data.forecastDaily[0].forecastHourly[19].pop+"%";
            document.getElementById("li158").innerHTML=data.forecastDaily[0].forecastHourly[19].windDir;
            document.getElementById("li159").innerHTML=data.forecastDaily[0].forecastHourly[19].windSpd+"km/h";
            document.getElementById("li160").innerHTML=data.forecastDaily[0].forecastHourly[19].windSc;

            document.getElementById("li161").innerHTML=data.forecastDaily[0].forecastHourly[20].gap;
             document.getElementById("li162").innerHTML=data.forecastDaily[0].forecastHourly[20].tmp+"°";
            document.getElementById("li163").innerHTML=data.forecastDaily[0].forecastHourly[20].hum+"%";
            document.getElementById("li164").innerHTML=data.forecastDaily[0].forecastHourly[20].pres+"hpa";
            document.getElementById("li165").innerHTML=data.forecastDaily[0].forecastHourly[20].pop+"%";
            document.getElementById("li166").innerHTML=data.forecastDaily[0].forecastHourly[20].windDir;
            document.getElementById("li167").innerHTML=data.forecastDaily[0].forecastHourly[20].windSpd+"km/h";
            document.getElementById("li168").innerHTML=data.forecastDaily[0].forecastHourly[20].windSc;

            document.getElementById("li169").innerHTML=data.forecastDaily[0].forecastHourly[21].gap;
             document.getElementById("li170").innerHTML=data.forecastDaily[0].forecastHourly[21].tmp+"°";
            document.getElementById("li171").innerHTML=data.forecastDaily[0].forecastHourly[21].hum+"%";
            document.getElementById("li172").innerHTML=data.forecastDaily[0].forecastHourly[21].pres+"hpa";
            document.getElementById("li173").innerHTML=data.forecastDaily[0].forecastHourly[21].pop+"%";
            document.getElementById("li174").innerHTML=data.forecastDaily[0].forecastHourly[21].windDir;
            document.getElementById("li175").innerHTML=data.forecastDaily[0].forecastHourly[21].windSpd+"km/h";
            document.getElementById("li176").innerHTML=data.forecastDaily[0].forecastHourly[21].windSc;

            document.getElementById("li177").innerHTML=data.forecastDaily[0].forecastHourly[22].gap;
             document.getElementById("li178").innerHTML=data.forecastDaily[0].forecastHourly[22].tmp+"°";
            document.getElementById("li179").innerHTML=data.forecastDaily[0].forecastHourly[22].hum+"%";
            document.getElementById("li180").innerHTML=data.forecastDaily[0].forecastHourly[22].pres+"hpa";
            document.getElementById("li181").innerHTML=data.forecastDaily[0].forecastHourly[22].pop+"%";
            document.getElementById("li182").innerHTML=data.forecastDaily[0].forecastHourly[22].windDir;
            document.getElementById("li183").innerHTML=data.forecastDaily[0].forecastHourly[22].windSpd+"km/h";
            document.getElementById("li184").innerHTML=data.forecastDaily[0].forecastHourly[22].windSc;

            document.getElementById("li185").innerHTML=data.forecastDaily[0].forecastHourly[23].gap;
             document.getElementById("li186").innerHTML=data.forecastDaily[0].forecastHourly[23].tmp+"°";
            document.getElementById("li187").innerHTML=data.forecastDaily[0].forecastHourly[23].hum+"%";
            document.getElementById("li188").innerHTML=data.forecastDaily[0].forecastHourly[23].pres+"hpa";
            document.getElementById("li189").innerHTML=data.forecastDaily[0].forecastHourly[23].pop+"%";
            document.getElementById("li190").innerHTML=data.forecastDaily[0].forecastHourly[23].windDir;
            document.getElementById("li191").innerHTML=data.forecastDaily[0].forecastHourly[23].windSpd+"km/h";
            document.getElementById("li192").innerHTML=data.forecastDaily[0].forecastHourly[23].windSc;




            


            // var th=parseInt(myDate.getHours()),i=0,k=0,b=0;
          
            //   var ulli= document.getElementById("contain-table").getElementsByTagName('ul');
            // var c=ulli[i].getElementsByTagName("li");
            // [0].innerHTML=data.forecastDaily[k].forecastHourly[i].gap;}
            }
          else {
            alert("发生错误：" + request.status);
         }
      } 
document.getElementById('pic').style.marginLeft="-15rem";
var list1=document.getElementById('seven');
list1.style.color="#72cff1";
var list=document.getElementById('box');
EventUtil.addHandler(list,"click",function(event){
	event=EventUtil.getEvent(event);
	var target=EventUtil.getTarget(event);

	switch(target.id){
		case "seven"&&"p1":
		init2();
      document.getElementById('one').style.color="black";
       document.getElementById('two').style.color="black";
       document.getElementById('three').style.color="black";
       document.getElementById('four').style.color="black";
        document.getElementById('five').style.color="black";
       document.getElementById('six').style.color="black";
       document.getElementById('seven').style.color="#72cff1";
       document.getElementById('pic').style.position="relative";
       document.getElementById('pic').style.left="0rem";

   var request = new XMLHttpRequest();
   request.open("GET", "http://dev.lanbaoo.com/api/weather/forecast?lat=0&lng=0&city&cityId=CN101270101" ,true);
   request.send();
   request.onreadystatechange = function() {
      if (request.readyState===4) {
         if (request.status===200) { 
            var data = JSON.parse(request.responseText);
            // if (data.id) { 
            // 	alert(data.city);
               
               
            // } else {
            //     alert("出现错误：") ;
            // }
            document.getElementById("zt2").innerHTML=data.forecastDaily[0].phaseName;
            document.getElementById("zt3").innerHTML=data.forecastDaily[0].tideName;
            document.getElementById("pt1").innerHTML=data.forecastDaily[0].presTime.split(",")[0];
            document.getElementById("pt3").innerHTML=data.forecastDaily[0].presTime.split(",")[1];
            document.getElementById("pt5").innerHTML=data.forecastDaily[0].presTime.split(",")[2];
            document.getElementById("pt7").innerHTML=data.forecastDaily[0].presTime.split(",")[3];
            document.getElementById("pt2").innerHTML=data.forecastDaily[0].presValue.split(",")[0];
            document.getElementById("pt4").innerHTML=data.forecastDaily[0].presValue.split(",")[1];
            document.getElementById("pt6").innerHTML=data.forecastDaily[0].presValue.split(",")[2];
            document.getElementById("pt8").innerHTML=data.forecastDaily[0].presValue.split(",")[3];
             document.getElementById("cl1").innerHTML=data.forecastDaily[0].sunrise.split(":")[0]+":"+data.forecastDaily[0].sunrise.split(":")[1];
            document.getElementById("cl2").innerHTML=data.forecastDaily[0].sunset.split(":")[0]+":"+data.forecastDaily[0].sunset.split(":")[1];
            document.getElementById("li1").innerHTML=data.forecastDaily[0].forecastHourly[0].gap;
             document.getElementById("li2").innerHTML=data.forecastDaily[0].forecastHourly[0].tmp+"°";
            document.getElementById("li3").innerHTML=data.forecastDaily[0].forecastHourly[0].hum+"%";
            document.getElementById("li4").innerHTML=data.forecastDaily[0].forecastHourly[0].pres+"hpa";
            document.getElementById("li5").innerHTML=data.forecastDaily[0].forecastHourly[0].pop+"%";
            document.getElementById("li6").innerHTML=data.forecastDaily[0].forecastHourly[0].windDir;
            document.getElementById("li7").innerHTML=data.forecastDaily[0].forecastHourly[0].windSpd+"km/h";
            document.getElementById("li8").innerHTML=data.forecastDaily[0].forecastHourly[0].windSc;

            document.getElementById("li9").innerHTML=data.forecastDaily[0].forecastHourly[1].gap;
             document.getElementById("li10").innerHTML=data.forecastDaily[0].forecastHourly[1].tmp+"°";
            document.getElementById("li11").innerHTML=data.forecastDaily[0].forecastHourly[1].hum+"%";
            document.getElementById("li12").innerHTML=data.forecastDaily[0].forecastHourly[1].pres+"hpa";
            document.getElementById("li13").innerHTML=data.forecastDaily[0].forecastHourly[1].pop+"%";
            document.getElementById("li14").innerHTML=data.forecastDaily[0].forecastHourly[1].windDir;
            document.getElementById("li15").innerHTML=data.forecastDaily[0].forecastHourly[1].windSpd+"km/h";
            document.getElementById("li16").innerHTML=data.forecastDaily[0].forecastHourly[1].windSc;

            document.getElementById("li17").innerHTML=data.forecastDaily[0].forecastHourly[2].gap;
             document.getElementById("li18").innerHTML=data.forecastDaily[0].forecastHourly[2].tmp+"°";
            document.getElementById("li19").innerHTML=data.forecastDaily[0].forecastHourly[2].hum+"%";
            document.getElementById("li20").innerHTML=data.forecastDaily[0].forecastHourly[2].pres+"hpa";
            document.getElementById("li21").innerHTML=data.forecastDaily[0].forecastHourly[2].pop+"%";
            document.getElementById("li22").innerHTML=data.forecastDaily[0].forecastHourly[2].windDir;
            document.getElementById("li23").innerHTML=data.forecastDaily[0].forecastHourly[2].windSpd+"km/h";
            document.getElementById("li24").innerHTML=data.forecastDaily[0].forecastHourly[2].windSc;

            document.getElementById("li25").innerHTML=data.forecastDaily[0].forecastHourly[3].gap;
             document.getElementById("li26").innerHTML=data.forecastDaily[0].forecastHourly[3].tmp+"°";
            document.getElementById("li27").innerHTML=data.forecastDaily[0].forecastHourly[3].hum+"%";
            document.getElementById("li28").innerHTML=data.forecastDaily[0].forecastHourly[3].pres+"hpa";
            document.getElementById("li29").innerHTML=data.forecastDaily[0].forecastHourly[3].pop+"%";
            document.getElementById("li30").innerHTML=data.forecastDaily[0].forecastHourly[3].windDir;
            document.getElementById("li31").innerHTML=data.forecastDaily[0].forecastHourly[3].windSpd+"km/h";
            document.getElementById("li32").innerHTML=data.forecastDaily[0].forecastHourly[3].windSc;

            document.getElementById("li33").innerHTML=data.forecastDaily[0].forecastHourly[4].gap;
             document.getElementById("li34").innerHTML=data.forecastDaily[0].forecastHourly[4].tmp+"°";
            document.getElementById("li35").innerHTML=data.forecastDaily[0].forecastHourly[4].hum+"%";
            document.getElementById("li36").innerHTML=data.forecastDaily[0].forecastHourly[4].pres+"hpa";
            document.getElementById("li37").innerHTML=data.forecastDaily[0].forecastHourly[4].pop+"%";
            document.getElementById("li38").innerHTML=data.forecastDaily[0].forecastHourly[4].windDir;
            document.getElementById("li39").innerHTML=data.forecastDaily[0].forecastHourly[4].windSpd+"km/h";
            document.getElementById("li40").innerHTML=data.forecastDaily[0].forecastHourly[4].windSc;

            document.getElementById("li41").innerHTML=data.forecastDaily[0].forecastHourly[5].gap;
             document.getElementById("li42").innerHTML=data.forecastDaily[0].forecastHourly[5].tmp+"°";
            document.getElementById("li43").innerHTML=data.forecastDaily[0].forecastHourly[5].hum+"%";
            document.getElementById("li44").innerHTML=data.forecastDaily[0].forecastHourly[5].pres+"hpa";
            document.getElementById("li45").innerHTML=data.forecastDaily[0].forecastHourly[5].pop+"%";
            document.getElementById("li46").innerHTML=data.forecastDaily[0].forecastHourly[5].windDir;
            document.getElementById("li47").innerHTML=data.forecastDaily[0].forecastHourly[5].windSpd+"km/h";
            document.getElementById("li48").innerHTML=data.forecastDaily[0].forecastHourly[5].windSc;

            document.getElementById("li49").innerHTML=data.forecastDaily[0].forecastHourly[6].gap;
             document.getElementById("li50").innerHTML=data.forecastDaily[0].forecastHourly[6].tmp+"°";
            document.getElementById("li51").innerHTML=data.forecastDaily[0].forecastHourly[6].hum+"%";
            document.getElementById("li52").innerHTML=data.forecastDaily[0].forecastHourly[6].pres+"hpa";
            document.getElementById("li53").innerHTML=data.forecastDaily[0].forecastHourly[6].pop+"%";
            document.getElementById("li54").innerHTML=data.forecastDaily[0].forecastHourly[6].windDir;
            document.getElementById("li55").innerHTML=data.forecastDaily[0].forecastHourly[6].windSpd+"km/h";
            document.getElementById("li56").innerHTML=data.forecastDaily[0].forecastHourly[6].windSc;

            document.getElementById("li57").innerHTML=data.forecastDaily[0].forecastHourly[7].gap;
             document.getElementById("li58").innerHTML=data.forecastDaily[0].forecastHourly[7].tmp+"°";
            document.getElementById("li59").innerHTML=data.forecastDaily[0].forecastHourly[7].hum+"%";
            document.getElementById("li60").innerHTML=data.forecastDaily[0].forecastHourly[7].pres+"hpa";
            document.getElementById("li61").innerHTML=data.forecastDaily[0].forecastHourly[7].pop+"%";
            document.getElementById("li62").innerHTML=data.forecastDaily[0].forecastHourly[7].windDir;
            document.getElementById("li63").innerHTML=data.forecastDaily[0].forecastHourly[7].windSpd+"km/h";
            document.getElementById("li64").innerHTML=data.forecastDaily[0].forecastHourly[7].windSc;

            document.getElementById("li65").innerHTML=data.forecastDaily[0].forecastHourly[8].gap;
             document.getElementById("li66").innerHTML=data.forecastDaily[0].forecastHourly[8].tmp+"°";
            document.getElementById("li67").innerHTML=data.forecastDaily[0].forecastHourly[8].hum+"%";
            document.getElementById("li68").innerHTML=data.forecastDaily[0].forecastHourly[8].pres+"hpa";
            document.getElementById("li69").innerHTML=data.forecastDaily[0].forecastHourly[8].pop+"%";
            document.getElementById("li70").innerHTML=data.forecastDaily[0].forecastHourly[8].windDir;
            document.getElementById("li71").innerHTML=data.forecastDaily[0].forecastHourly[8].windSpd+"km/h";
            document.getElementById("li72").innerHTML=data.forecastDaily[0].forecastHourly[8].windSc;

            document.getElementById("li73").innerHTML=data.forecastDaily[0].forecastHourly[9].gap;
             document.getElementById("li74").innerHTML=data.forecastDaily[0].forecastHourly[9].tmp+"°";
            document.getElementById("li75").innerHTML=data.forecastDaily[0].forecastHourly[9].hum+"%";
            document.getElementById("li76").innerHTML=data.forecastDaily[0].forecastHourly[9].pres+"hpa";
            document.getElementById("li77").innerHTML=data.forecastDaily[0].forecastHourly[9].pop+"%";
            document.getElementById("li78").innerHTML=data.forecastDaily[0].forecastHourly[9].windDir;
            document.getElementById("li79").innerHTML=data.forecastDaily[0].forecastHourly[9].windSpd+"km/h";
            document.getElementById("li80").innerHTML=data.forecastDaily[0].forecastHourly[9].windSc;

            document.getElementById("li81").innerHTML=data.forecastDaily[0].forecastHourly[10].gap;
             document.getElementById("li82").innerHTML=data.forecastDaily[0].forecastHourly[10].tmp+"°";
            document.getElementById("li83").innerHTML=data.forecastDaily[0].forecastHourly[10].hum+"%";
            document.getElementById("li84").innerHTML=data.forecastDaily[0].forecastHourly[10].pres+"hpa";
            document.getElementById("li85").innerHTML=data.forecastDaily[0].forecastHourly[10].pop+"%";
            document.getElementById("li86").innerHTML=data.forecastDaily[0].forecastHourly[10].windDir;
            document.getElementById("li87").innerHTML=data.forecastDaily[0].forecastHourly[10].windSpd+"km/h";
            document.getElementById("li88").innerHTML=data.forecastDaily[0].forecastHourly[10].windSc;

            document.getElementById("li89").innerHTML=data.forecastDaily[0].forecastHourly[11].gap;
             document.getElementById("li90").innerHTML=data.forecastDaily[0].forecastHourly[11].tmp+"°";
            document.getElementById("li91").innerHTML=data.forecastDaily[0].forecastHourly[11].hum+"%";
            document.getElementById("li92").innerHTML=data.forecastDaily[0].forecastHourly[11].pres+"hpa";
            document.getElementById("li93").innerHTML=data.forecastDaily[0].forecastHourly[11].pop+"%";
            document.getElementById("li94").innerHTML=data.forecastDaily[0].forecastHourly[11].windDir;
            document.getElementById("li95").innerHTML=data.forecastDaily[0].forecastHourly[11].windSpd+"km/h";
            document.getElementById("li96").innerHTML=data.forecastDaily[0].forecastHourly[11].windSc;

            document.getElementById("li97").innerHTML=data.forecastDaily[0].forecastHourly[12].gap;
             document.getElementById("li98").innerHTML=data.forecastDaily[0].forecastHourly[12].tmp+"°";
            document.getElementById("li99").innerHTML=data.forecastDaily[0].forecastHourly[12].hum+"%";
            document.getElementById("li100").innerHTML=data.forecastDaily[0].forecastHourly[12].pres+"hpa";
            document.getElementById("li101").innerHTML=data.forecastDaily[0].forecastHourly[12].pop+"%";
            document.getElementById("li102").innerHTML=data.forecastDaily[0].forecastHourly[12].windDir;
            document.getElementById("li103").innerHTML=data.forecastDaily[0].forecastHourly[12].windSpd+"km/h";
            document.getElementById("li104").innerHTML=data.forecastDaily[0].forecastHourly[12].windSc;

            document.getElementById("li105").innerHTML=data.forecastDaily[0].forecastHourly[13].gap;
             document.getElementById("li106").innerHTML=data.forecastDaily[0].forecastHourly[13].tmp+"°";
            document.getElementById("li107").innerHTML=data.forecastDaily[0].forecastHourly[13].hum+"%";
            document.getElementById("li108").innerHTML=data.forecastDaily[0].forecastHourly[13].pres+"hpa";
            document.getElementById("li109").innerHTML=data.forecastDaily[0].forecastHourly[13].pop+"%";
            document.getElementById("li110").innerHTML=data.forecastDaily[0].forecastHourly[13].windDir;
            document.getElementById("li111").innerHTML=data.forecastDaily[0].forecastHourly[13].windSpd+"km/h";
            document.getElementById("li112").innerHTML=data.forecastDaily[0].forecastHourly[13].windSc;

            document.getElementById("li113").innerHTML=data.forecastDaily[0].forecastHourly[14].gap;
             document.getElementById("li114").innerHTML=data.forecastDaily[0].forecastHourly[14].tmp+"°";
            document.getElementById("li115").innerHTML=data.forecastDaily[0].forecastHourly[14].hum+"%";
            document.getElementById("li116").innerHTML=data.forecastDaily[0].forecastHourly[14].pres+"hpa";
            document.getElementById("li117").innerHTML=data.forecastDaily[0].forecastHourly[14].pop+"%";
            document.getElementById("li118").innerHTML=data.forecastDaily[0].forecastHourly[14].windDir;
            document.getElementById("li119").innerHTML=data.forecastDaily[0].forecastHourly[14].windSpd+"km/h";
            document.getElementById("li120").innerHTML=data.forecastDaily[0].forecastHourly[14].windSc;

            document.getElementById("li121").innerHTML=data.forecastDaily[0].forecastHourly[15].gap;
             document.getElementById("li122").innerHTML=data.forecastDaily[0].forecastHourly[15].tmp+"°";
            document.getElementById("li123").innerHTML=data.forecastDaily[0].forecastHourly[15].hum+"%";
            document.getElementById("li124").innerHTML=data.forecastDaily[0].forecastHourly[15].pres+"hpa";
            document.getElementById("li125").innerHTML=data.forecastDaily[0].forecastHourly[15].pop+"%";
            document.getElementById("li126").innerHTML=data.forecastDaily[0].forecastHourly[15].windDir;
            document.getElementById("li127").innerHTML=data.forecastDaily[0].forecastHourly[15].windSpd+"km/h";
            document.getElementById("li128").innerHTML=data.forecastDaily[0].forecastHourly[15].windSc;

            document.getElementById("li129").innerHTML=data.forecastDaily[0].forecastHourly[16].gap;
             document.getElementById("li130").innerHTML=data.forecastDaily[0].forecastHourly[16].tmp+"°";
            document.getElementById("li131").innerHTML=data.forecastDaily[0].forecastHourly[16].hum+"%";
            document.getElementById("li132").innerHTML=data.forecastDaily[0].forecastHourly[16].pres+"hpa";
            document.getElementById("li133").innerHTML=data.forecastDaily[0].forecastHourly[16].pop+"%";
            document.getElementById("li134").innerHTML=data.forecastDaily[0].forecastHourly[16].windDir;
            document.getElementById("li135").innerHTML=data.forecastDaily[0].forecastHourly[16].windSpd+"km/h";
            document.getElementById("li136").innerHTML=data.forecastDaily[0].forecastHourly[16].windSc;

            document.getElementById("li137").innerHTML=data.forecastDaily[0].forecastHourly[17].gap;
             document.getElementById("li138").innerHTML=data.forecastDaily[0].forecastHourly[17].tmp+"°";
            document.getElementById("li139").innerHTML=data.forecastDaily[0].forecastHourly[17].hum+"%";
            document.getElementById("li140").innerHTML=data.forecastDaily[0].forecastHourly[17].pres+"hpa";
            document.getElementById("li141").innerHTML=data.forecastDaily[0].forecastHourly[17].pop+"%";
            document.getElementById("li142").innerHTML=data.forecastDaily[0].forecastHourly[17].windDir;
            document.getElementById("li143").innerHTML=data.forecastDaily[0].forecastHourly[17].windSpd+"km/h";
            document.getElementById("li144").innerHTML=data.forecastDaily[0].forecastHourly[17].windSc;

            document.getElementById("li145").innerHTML=data.forecastDaily[0].forecastHourly[18].gap;
             document.getElementById("li146").innerHTML=data.forecastDaily[0].forecastHourly[18].tmp+"°";
            document.getElementById("li147").innerHTML=data.forecastDaily[0].forecastHourly[18].hum+"%";
            document.getElementById("li148").innerHTML=data.forecastDaily[0].forecastHourly[18].pres+"hpa";
            document.getElementById("li149").innerHTML=data.forecastDaily[0].forecastHourly[18].pop+"%";
            document.getElementById("li150").innerHTML=data.forecastDaily[0].forecastHourly[18].windDir;
            document.getElementById("li151").innerHTML=data.forecastDaily[0].forecastHourly[18].windSpd+"km/h";
            document.getElementById("li152").innerHTML=data.forecastDaily[0].forecastHourly[18].windSc;

            document.getElementById("li153").innerHTML=data.forecastDaily[0].forecastHourly[19].gap;
             document.getElementById("li154").innerHTML=data.forecastDaily[0].forecastHourly[19].tmp+"°";
            document.getElementById("li155").innerHTML=data.forecastDaily[0].forecastHourly[19].hum+"%";
            document.getElementById("li156").innerHTML=data.forecastDaily[0].forecastHourly[19].pres+"hpa";
            document.getElementById("li157").innerHTML=data.forecastDaily[0].forecastHourly[19].pop+"%";
            document.getElementById("li158").innerHTML=data.forecastDaily[0].forecastHourly[19].windDir;
            document.getElementById("li159").innerHTML=data.forecastDaily[0].forecastHourly[19].windSpd+"km/h";
            document.getElementById("li160").innerHTML=data.forecastDaily[0].forecastHourly[19].windSc;

            document.getElementById("li161").innerHTML=data.forecastDaily[0].forecastHourly[20].gap;
             document.getElementById("li162").innerHTML=data.forecastDaily[0].forecastHourly[20].tmp+"°";
            document.getElementById("li163").innerHTML=data.forecastDaily[0].forecastHourly[20].hum+"%";
            document.getElementById("li164").innerHTML=data.forecastDaily[0].forecastHourly[20].pres+"hpa";
            document.getElementById("li165").innerHTML=data.forecastDaily[0].forecastHourly[20].pop+"%";
            document.getElementById("li166").innerHTML=data.forecastDaily[0].forecastHourly[20].windDir;
            document.getElementById("li167").innerHTML=data.forecastDaily[0].forecastHourly[20].windSpd+"km/h";
            document.getElementById("li168").innerHTML=data.forecastDaily[0].forecastHourly[20].windSc;

            document.getElementById("li169").innerHTML=data.forecastDaily[0].forecastHourly[21].gap;
             document.getElementById("li170").innerHTML=data.forecastDaily[0].forecastHourly[21].tmp+"°";
            document.getElementById("li171").innerHTML=data.forecastDaily[0].forecastHourly[21].hum+"%";
            document.getElementById("li172").innerHTML=data.forecastDaily[0].forecastHourly[21].pres+"hpa";
            document.getElementById("li173").innerHTML=data.forecastDaily[0].forecastHourly[21].pop+"%";
            document.getElementById("li174").innerHTML=data.forecastDaily[0].forecastHourly[21].windDir;
            document.getElementById("li175").innerHTML=data.forecastDaily[0].forecastHourly[21].windSpd+"km/h";
            document.getElementById("li176").innerHTML=data.forecastDaily[0].forecastHourly[21].windSc;

            document.getElementById("li177").innerHTML=data.forecastDaily[0].forecastHourly[22].gap;
             document.getElementById("li178").innerHTML=data.forecastDaily[0].forecastHourly[22].tmp+"°";
            document.getElementById("li179").innerHTML=data.forecastDaily[0].forecastHourly[22].hum+"%";
            document.getElementById("li180").innerHTML=data.forecastDaily[0].forecastHourly[22].pres+"hpa";
            document.getElementById("li181").innerHTML=data.forecastDaily[0].forecastHourly[22].pop+"%";
            document.getElementById("li182").innerHTML=data.forecastDaily[0].forecastHourly[22].windDir;
            document.getElementById("li183").innerHTML=data.forecastDaily[0].forecastHourly[22].windSpd+"km/h";
            document.getElementById("li184").innerHTML=data.forecastDaily[0].forecastHourly[22].windSc;

            document.getElementById("li185").innerHTML=data.forecastDaily[0].forecastHourly[23].gap;
             document.getElementById("li186").innerHTML=data.forecastDaily[0].forecastHourly[23].tmp+"°";
            document.getElementById("li187").innerHTML=data.forecastDaily[0].forecastHourly[23].hum+"%";
            document.getElementById("li188").innerHTML=data.forecastDaily[0].forecastHourly[23].pres+"hpa";
            document.getElementById("li189").innerHTML=data.forecastDaily[0].forecastHourly[23].pop+"%";
            document.getElementById("li190").innerHTML=data.forecastDaily[0].forecastHourly[23].windDir;
            document.getElementById("li191").innerHTML=data.forecastDaily[0].forecastHourly[23].windSpd+"km/h";
            document.getElementById("li192").innerHTML=data.forecastDaily[0].forecastHourly[23].windSc;




            


            // var th=parseInt(myDate.getHours()),i=0,k=0,b=0;
          
            //   var ulli= document.getElementById("contain-table").getElementsByTagName('ul');
            // var c=ulli[i].getElementsByTagName("li");
            // [0].innerHTML=data.forecastDaily[k].forecastHourly[i].gap;}
            }
          else {
            alert("发生错误：" + request.status);
         }
      } 
   }
	
       break;
       case "one"&&"p2":
       init();
        var request = new XMLHttpRequest();
   request.open("GET", "http://dev.lanbaoo.com/api/weather/forecast?lat=0&lng=0&city&cityId=CN101270101" ,true);
   request.send();
   request.onreadystatechange = function() {
      if (request.readyState===4) {
         if (request.status===200) { 
            var data = JSON.parse(request.responseText);
            // if (data.id) { 
            //  alert(data.city);
               
               
            // } else {
            //     alert("出现错误：") ;
            // }
            document.getElementById("zt2").innerHTML=data.forecastDaily[1].phaseName;
            document.getElementById("zt3").innerHTML=data.forecastDaily[1].tideName;
            document.getElementById("pt1").innerHTML=data.forecastDaily[1].presTime.split(",")[0];
            document.getElementById("pt3").innerHTML=data.forecastDaily[1].presTime.split(",")[1];
            document.getElementById("pt5").innerHTML=data.forecastDaily[1].presTime.split(",")[2];
            document.getElementById("pt7").innerHTML=data.forecastDaily[1].presTime.split(",")[3];
            document.getElementById("pt2").innerHTML=data.forecastDaily[1].presValue.split(",")[0];
            document.getElementById("pt4").innerHTML=data.forecastDaily[1].presValue.split(",")[1];
            document.getElementById("pt6").innerHTML=data.forecastDaily[1].presValue.split(",")[2];
            document.getElementById("pt8").innerHTML=data.forecastDaily[1].presValue.split(",")[3];
             document.getElementById("cl1").innerHTML=data.forecastDaily[1].sunrise.split(":")[0]+":"+data.forecastDaily[1].sunrise.split(":")[1];
            document.getElementById("cl2").innerHTML=data.forecastDaily[1].sunset.split(":")[0]+":"+data.forecastDaily[1].sunset.split(":")[1];
            document.getElementById("li1").innerHTML=data.forecastDaily[1].forecastHourly[0].gap;
             document.getElementById("li2").innerHTML=data.forecastDaily[1].forecastHourly[0].tmp+"°";
            document.getElementById("li3").innerHTML=data.forecastDaily[1].forecastHourly[0].hum+"%";
            document.getElementById("li4").innerHTML=data.forecastDaily[1].forecastHourly[0].pres+"hpa";
            document.getElementById("li5").innerHTML=data.forecastDaily[1].forecastHourly[0].pop+"%";
            document.getElementById("li6").innerHTML=data.forecastDaily[1].forecastHourly[0].windDir;
            document.getElementById("li7").innerHTML=data.forecastDaily[1].forecastHourly[0].windSpd+"km/h";
            document.getElementById("li8").innerHTML=data.forecastDaily[1].forecastHourly[0].windSc;

            document.getElementById("li9").innerHTML=data.forecastDaily[1].forecastHourly[1].gap;
             document.getElementById("li10").innerHTML=data.forecastDaily[1].forecastHourly[1].tmp+"°";
            document.getElementById("li11").innerHTML=data.forecastDaily[1].forecastHourly[1].hum+"%";
            document.getElementById("li12").innerHTML=data.forecastDaily[1].forecastHourly[1].pres+"hpa";
            document.getElementById("li13").innerHTML=data.forecastDaily[1].forecastHourly[1].pop+"%";
            document.getElementById("li14").innerHTML=data.forecastDaily[1].forecastHourly[1].windDir;
            document.getElementById("li15").innerHTML=data.forecastDaily[1].forecastHourly[1].windSpd+"km/h";
            document.getElementById("li16").innerHTML=data.forecastDaily[1].forecastHourly[1].windSc;

            document.getElementById("li17").innerHTML=data.forecastDaily[1].forecastHourly[2].gap;
             document.getElementById("li18").innerHTML=data.forecastDaily[1].forecastHourly[2].tmp+"°";
            document.getElementById("li19").innerHTML=data.forecastDaily[1].forecastHourly[2].hum+"%";
            document.getElementById("li20").innerHTML=data.forecastDaily[1].forecastHourly[2].pres+"hpa";
            document.getElementById("li21").innerHTML=data.forecastDaily[1].forecastHourly[2].pop+"%";
            document.getElementById("li22").innerHTML=data.forecastDaily[1].forecastHourly[2].windDir;
            document.getElementById("li23").innerHTML=data.forecastDaily[1].forecastHourly[2].windSpd+"km/h";
            document.getElementById("li24").innerHTML=data.forecastDaily[1].forecastHourly[2].windSc;

            document.getElementById("li25").innerHTML=data.forecastDaily[1].forecastHourly[3].gap;
             document.getElementById("li26").innerHTML=data.forecastDaily[1].forecastHourly[3].tmp+"°";
            document.getElementById("li27").innerHTML=data.forecastDaily[1].forecastHourly[3].hum+"%";
            document.getElementById("li28").innerHTML=data.forecastDaily[1].forecastHourly[3].pres+"hpa";
            document.getElementById("li29").innerHTML=data.forecastDaily[1].forecastHourly[3].pop+"%";
            document.getElementById("li30").innerHTML=data.forecastDaily[1].forecastHourly[3].windDir;
            document.getElementById("li31").innerHTML=data.forecastDaily[1].forecastHourly[3].windSpd+"km/h";
            document.getElementById("li32").innerHTML=data.forecastDaily[1].forecastHourly[3].windSc;

            document.getElementById("li33").innerHTML=data.forecastDaily[1].forecastHourly[4].gap;
             document.getElementById("li34").innerHTML=data.forecastDaily[1].forecastHourly[4].tmp+"°";
            document.getElementById("li35").innerHTML=data.forecastDaily[1].forecastHourly[4].hum+"%";
            document.getElementById("li36").innerHTML=data.forecastDaily[1].forecastHourly[4].pres+"hpa";
            document.getElementById("li37").innerHTML=data.forecastDaily[1].forecastHourly[4].pop+"%";
            document.getElementById("li38").innerHTML=data.forecastDaily[1].forecastHourly[4].windDir;
            document.getElementById("li39").innerHTML=data.forecastDaily[1].forecastHourly[4].windSpd+"km/h";
            document.getElementById("li40").innerHTML=data.forecastDaily[1].forecastHourly[4].windSc;

            document.getElementById("li41").innerHTML=data.forecastDaily[1].forecastHourly[5].gap;
             document.getElementById("li42").innerHTML=data.forecastDaily[1].forecastHourly[5].tmp+"°";
            document.getElementById("li43").innerHTML=data.forecastDaily[1].forecastHourly[5].hum+"%";
            document.getElementById("li44").innerHTML=data.forecastDaily[1].forecastHourly[5].pres+"hpa";
            document.getElementById("li45").innerHTML=data.forecastDaily[1].forecastHourly[5].pop+"%";
            document.getElementById("li46").innerHTML=data.forecastDaily[1].forecastHourly[5].windDir;
            document.getElementById("li47").innerHTML=data.forecastDaily[1].forecastHourly[5].windSpd+"km/h";
            document.getElementById("li48").innerHTML=data.forecastDaily[1].forecastHourly[5].windSc;

            document.getElementById("li49").innerHTML=data.forecastDaily[1].forecastHourly[6].gap;
             document.getElementById("li50").innerHTML=data.forecastDaily[1].forecastHourly[6].tmp+"°";
            document.getElementById("li51").innerHTML=data.forecastDaily[1].forecastHourly[6].hum+"%";
            document.getElementById("li52").innerHTML=data.forecastDaily[1].forecastHourly[6].pres+"hpa";
            document.getElementById("li53").innerHTML=data.forecastDaily[1].forecastHourly[6].pop+"%";
            document.getElementById("li54").innerHTML=data.forecastDaily[1].forecastHourly[6].windDir;
            document.getElementById("li55").innerHTML=data.forecastDaily[1].forecastHourly[6].windSpd+"km/h";
            document.getElementById("li56").innerHTML=data.forecastDaily[1].forecastHourly[6].windSc;

            document.getElementById("li57").innerHTML=data.forecastDaily[1].forecastHourly[7].gap;
             document.getElementById("li58").innerHTML=data.forecastDaily[1].forecastHourly[7].tmp+"°";
            document.getElementById("li59").innerHTML=data.forecastDaily[1].forecastHourly[7].hum+"%";
            document.getElementById("li60").innerHTML=data.forecastDaily[1].forecastHourly[7].pres+"hpa";
            document.getElementById("li61").innerHTML=data.forecastDaily[1].forecastHourly[7].pop+"%";
            document.getElementById("li62").innerHTML=data.forecastDaily[1].forecastHourly[7].windDir;
            document.getElementById("li63").innerHTML=data.forecastDaily[1].forecastHourly[7].windSpd+"km/h";
            document.getElementById("li64").innerHTML=data.forecastDaily[1].forecastHourly[7].windSc;

            document.getElementById("li65").innerHTML=data.forecastDaily[1].forecastHourly[8].gap;
             document.getElementById("li66").innerHTML=data.forecastDaily[1].forecastHourly[8].tmp+"°";
            document.getElementById("li67").innerHTML=data.forecastDaily[1].forecastHourly[8].hum+"%";
            document.getElementById("li68").innerHTML=data.forecastDaily[1].forecastHourly[8].pres+"hpa";
            document.getElementById("li69").innerHTML=data.forecastDaily[1].forecastHourly[8].pop+"%";
            document.getElementById("li70").innerHTML=data.forecastDaily[1].forecastHourly[8].windDir;
            document.getElementById("li71").innerHTML=data.forecastDaily[1].forecastHourly[8].windSpd+"km/h";
            document.getElementById("li72").innerHTML=data.forecastDaily[1].forecastHourly[8].windSc;

            document.getElementById("li73").innerHTML=data.forecastDaily[1].forecastHourly[9].gap;
             document.getElementById("li74").innerHTML=data.forecastDaily[1].forecastHourly[9].tmp+"°";
            document.getElementById("li75").innerHTML=data.forecastDaily[1].forecastHourly[9].hum+"%";
            document.getElementById("li76").innerHTML=data.forecastDaily[1].forecastHourly[9].pres+"hpa";
            document.getElementById("li77").innerHTML=data.forecastDaily[1].forecastHourly[9].pop+"%";
            document.getElementById("li78").innerHTML=data.forecastDaily[1].forecastHourly[9].windDir;
            document.getElementById("li79").innerHTML=data.forecastDaily[1].forecastHourly[9].windSpd+"km/h";
            document.getElementById("li80").innerHTML=data.forecastDaily[1].forecastHourly[9].windSc;

            document.getElementById("li81").innerHTML=data.forecastDaily[1].forecastHourly[10].gap;
             document.getElementById("li82").innerHTML=data.forecastDaily[1].forecastHourly[10].tmp+"°";
            document.getElementById("li83").innerHTML=data.forecastDaily[1].forecastHourly[10].hum+"%";
            document.getElementById("li84").innerHTML=data.forecastDaily[1].forecastHourly[10].pres+"hpa";
            document.getElementById("li85").innerHTML=data.forecastDaily[1].forecastHourly[10].pop+"%";
            document.getElementById("li86").innerHTML=data.forecastDaily[1].forecastHourly[10].windDir;
            document.getElementById("li87").innerHTML=data.forecastDaily[1].forecastHourly[10].windSpd+"km/h";
            document.getElementById("li88").innerHTML=data.forecastDaily[1].forecastHourly[10].windSc;

            document.getElementById("li89").innerHTML=data.forecastDaily[1].forecastHourly[11].gap;
             document.getElementById("li90").innerHTML=data.forecastDaily[1].forecastHourly[11].tmp+"°";
            document.getElementById("li91").innerHTML=data.forecastDaily[1].forecastHourly[11].hum+"%";
            document.getElementById("li92").innerHTML=data.forecastDaily[1].forecastHourly[11].pres+"hpa";
            document.getElementById("li93").innerHTML=data.forecastDaily[1].forecastHourly[11].pop+"%";
            document.getElementById("li94").innerHTML=data.forecastDaily[1].forecastHourly[11].windDir;
            document.getElementById("li95").innerHTML=data.forecastDaily[1].forecastHourly[11].windSpd+"km/h";
            document.getElementById("li96").innerHTML=data.forecastDaily[1].forecastHourly[11].windSc;

            document.getElementById("li97").innerHTML=data.forecastDaily[1].forecastHourly[12].gap;
             document.getElementById("li98").innerHTML=data.forecastDaily[1].forecastHourly[12].tmp+"°";
            document.getElementById("li99").innerHTML=data.forecastDaily[1].forecastHourly[12].hum+"%";
            document.getElementById("li100").innerHTML=data.forecastDaily[1].forecastHourly[12].pres+"hpa";
            document.getElementById("li101").innerHTML=data.forecastDaily[1].forecastHourly[12].pop+"%";
            document.getElementById("li102").innerHTML=data.forecastDaily[1].forecastHourly[12].windDir;
            document.getElementById("li103").innerHTML=data.forecastDaily[1].forecastHourly[12].windSpd+"km/h";
            document.getElementById("li104").innerHTML=data.forecastDaily[1].forecastHourly[12].windSc;

            document.getElementById("li105").innerHTML=data.forecastDaily[1].forecastHourly[13].gap;
             document.getElementById("li106").innerHTML=data.forecastDaily[1].forecastHourly[13].tmp+"°";
            document.getElementById("li107").innerHTML=data.forecastDaily[1].forecastHourly[13].hum+"%";
            document.getElementById("li108").innerHTML=data.forecastDaily[1].forecastHourly[13].pres+"hpa";
            document.getElementById("li109").innerHTML=data.forecastDaily[1].forecastHourly[13].pop+"%";
            document.getElementById("li110").innerHTML=data.forecastDaily[1].forecastHourly[13].windDir;
            document.getElementById("li111").innerHTML=data.forecastDaily[1].forecastHourly[13].windSpd+"km/h";
            document.getElementById("li112").innerHTML=data.forecastDaily[1].forecastHourly[13].windSc;

            document.getElementById("li113").innerHTML=data.forecastDaily[1].forecastHourly[14].gap;
             document.getElementById("li114").innerHTML=data.forecastDaily[1].forecastHourly[14].tmp+"°";
            document.getElementById("li115").innerHTML=data.forecastDaily[1].forecastHourly[14].hum+"%";
            document.getElementById("li116").innerHTML=data.forecastDaily[1].forecastHourly[14].pres+"hpa";
            document.getElementById("li117").innerHTML=data.forecastDaily[1].forecastHourly[14].pop+"%";
            document.getElementById("li118").innerHTML=data.forecastDaily[1].forecastHourly[14].windDir;
            document.getElementById("li119").innerHTML=data.forecastDaily[1].forecastHourly[14].windSpd+"km/h";
            document.getElementById("li120").innerHTML=data.forecastDaily[1].forecastHourly[14].windSc;

            document.getElementById("li121").innerHTML=data.forecastDaily[1].forecastHourly[15].gap;
             document.getElementById("li122").innerHTML=data.forecastDaily[1].forecastHourly[15].tmp+"°";
            document.getElementById("li123").innerHTML=data.forecastDaily[1].forecastHourly[15].hum+"%";
            document.getElementById("li124").innerHTML=data.forecastDaily[1].forecastHourly[15].pres+"hpa";
            document.getElementById("li125").innerHTML=data.forecastDaily[1].forecastHourly[15].pop+"%";
            document.getElementById("li126").innerHTML=data.forecastDaily[1].forecastHourly[15].windDir;
            document.getElementById("li127").innerHTML=data.forecastDaily[1].forecastHourly[15].windSpd+"km/h";
            document.getElementById("li128").innerHTML=data.forecastDaily[1].forecastHourly[15].windSc;

            document.getElementById("li129").innerHTML=data.forecastDaily[1].forecastHourly[16].gap;
             document.getElementById("li130").innerHTML=data.forecastDaily[1].forecastHourly[16].tmp+"°";
            document.getElementById("li131").innerHTML=data.forecastDaily[1].forecastHourly[16].hum+"%";
            document.getElementById("li132").innerHTML=data.forecastDaily[1].forecastHourly[16].pres+"hpa";
            document.getElementById("li133").innerHTML=data.forecastDaily[1].forecastHourly[16].pop+"%";
            document.getElementById("li134").innerHTML=data.forecastDaily[1].forecastHourly[16].windDir;
            document.getElementById("li135").innerHTML=data.forecastDaily[1].forecastHourly[16].windSpd+"km/h";
            document.getElementById("li136").innerHTML=data.forecastDaily[1].forecastHourly[16].windSc;

            document.getElementById("li137").innerHTML=data.forecastDaily[1].forecastHourly[17].gap;
             document.getElementById("li138").innerHTML=data.forecastDaily[1].forecastHourly[17].tmp+"°";
            document.getElementById("li139").innerHTML=data.forecastDaily[1].forecastHourly[17].hum+"%";
            document.getElementById("li140").innerHTML=data.forecastDaily[1].forecastHourly[17].pres+"hpa";
            document.getElementById("li141").innerHTML=data.forecastDaily[1].forecastHourly[17].pop+"%";
            document.getElementById("li142").innerHTML=data.forecastDaily[1].forecastHourly[17].windDir;
            document.getElementById("li143").innerHTML=data.forecastDaily[1].forecastHourly[17].windSpd+"km/h";
            document.getElementById("li144").innerHTML=data.forecastDaily[1].forecastHourly[17].windSc;

            document.getElementById("li145").innerHTML=data.forecastDaily[1].forecastHourly[18].gap;
             document.getElementById("li146").innerHTML=data.forecastDaily[1].forecastHourly[18].tmp+"°";
            document.getElementById("li147").innerHTML=data.forecastDaily[1].forecastHourly[18].hum+"%";
            document.getElementById("li148").innerHTML=data.forecastDaily[1].forecastHourly[18].pres+"hpa";
            document.getElementById("li149").innerHTML=data.forecastDaily[1].forecastHourly[18].pop+"%";
            document.getElementById("li150").innerHTML=data.forecastDaily[1].forecastHourly[18].windDir;
            document.getElementById("li151").innerHTML=data.forecastDaily[1].forecastHourly[18].windSpd+"km/h";
            document.getElementById("li152").innerHTML=data.forecastDaily[1].forecastHourly[18].windSc;

            document.getElementById("li153").innerHTML=data.forecastDaily[1].forecastHourly[19].gap;
             document.getElementById("li154").innerHTML=data.forecastDaily[1].forecastHourly[19].tmp+"°";
            document.getElementById("li155").innerHTML=data.forecastDaily[1].forecastHourly[19].hum+"%";
            document.getElementById("li156").innerHTML=data.forecastDaily[1].forecastHourly[19].pres+"hpa";
            document.getElementById("li157").innerHTML=data.forecastDaily[1].forecastHourly[19].pop+"%";
            document.getElementById("li158").innerHTML=data.forecastDaily[1].forecastHourly[19].windDir;
            document.getElementById("li159").innerHTML=data.forecastDaily[1].forecastHourly[19].windSpd+"km/h";
            document.getElementById("li160").innerHTML=data.forecastDaily[1].forecastHourly[19].windSc;

            document.getElementById("li161").innerHTML=data.forecastDaily[1].forecastHourly[20].gap;
             document.getElementById("li162").innerHTML=data.forecastDaily[1].forecastHourly[20].tmp+"°";
            document.getElementById("li163").innerHTML=data.forecastDaily[1].forecastHourly[20].hum+"%";
            document.getElementById("li164").innerHTML=data.forecastDaily[1].forecastHourly[20].pres+"hpa";
            document.getElementById("li165").innerHTML=data.forecastDaily[1].forecastHourly[20].pop+"%";
            document.getElementById("li166").innerHTML=data.forecastDaily[1].forecastHourly[20].windDir;
            document.getElementById("li167").innerHTML=data.forecastDaily[1].forecastHourly[20].windSpd+"km/h";
            document.getElementById("li168").innerHTML=data.forecastDaily[1].forecastHourly[20].windSc;

            document.getElementById("li169").innerHTML=data.forecastDaily[1].forecastHourly[21].gap;
             document.getElementById("li170").innerHTML=data.forecastDaily[1].forecastHourly[21].tmp+"°";
            document.getElementById("li171").innerHTML=data.forecastDaily[1].forecastHourly[21].hum+"%";
            document.getElementById("li172").innerHTML=data.forecastDaily[1].forecastHourly[21].pres+"hpa";
            document.getElementById("li173").innerHTML=data.forecastDaily[1].forecastHourly[21].pop+"%";
            document.getElementById("li174").innerHTML=data.forecastDaily[1].forecastHourly[21].windDir;
            document.getElementById("li175").innerHTML=data.forecastDaily[1].forecastHourly[21].windSpd+"km/h";
            document.getElementById("li176").innerHTML=data.forecastDaily[1].forecastHourly[21].windSc;

            document.getElementById("li177").innerHTML=data.forecastDaily[1].forecastHourly[22].gap;
             document.getElementById("li178").innerHTML=data.forecastDaily[1].forecastHourly[22].tmp+"°";
            document.getElementById("li179").innerHTML=data.forecastDaily[1].forecastHourly[22].hum+"%";
            document.getElementById("li180").innerHTML=data.forecastDaily[1].forecastHourly[22].pres+"hpa";
            document.getElementById("li181").innerHTML=data.forecastDaily[1].forecastHourly[22].pop+"%";
            document.getElementById("li182").innerHTML=data.forecastDaily[1].forecastHourly[22].windDir;
            document.getElementById("li183").innerHTML=data.forecastDaily[1].forecastHourly[22].windSpd+"km/h";
            document.getElementById("li184").innerHTML=data.forecastDaily[1].forecastHourly[22].windSc;

            document.getElementById("li185").innerHTML=data.forecastDaily[1].forecastHourly[23].gap;
             document.getElementById("li186").innerHTML=data.forecastDaily[1].forecastHourly[23].tmp+"°";
            document.getElementById("li187").innerHTML=data.forecastDaily[1].forecastHourly[23].hum+"%";
            document.getElementById("li188").innerHTML=data.forecastDaily[1].forecastHourly[23].pres+"hpa";
            document.getElementById("li189").innerHTML=data.forecastDaily[1].forecastHourly[23].pop+"%";
            document.getElementById("li190").innerHTML=data.forecastDaily[1].forecastHourly[23].windDir;
            document.getElementById("li191").innerHTML=data.forecastDaily[1].forecastHourly[23].windSpd+"km/h";
            document.getElementById("li192").innerHTML=data.forecastDaily[1].forecastHourly[23].windSc;




            


            // var th=parseInt(myDate.getHours()),i=0,k=0,b=0;
          
            //   var ulli= document.getElementById("contain-table").getElementsByTagName('ul');
            // var c=ulli[i].getElementsByTagName("li");
            // [0].innerHTML=data.forecastDaily[k].forecastHourly[i].gap;}
            }
          else {
            alert("发生错误：" + request.status);
         }
      } 
   }
 
       document.getElementById('one').style.color="#72cff1";
       document.getElementById('two').style.color="black";
       document.getElementById('three').style.color="black";
       document.getElementById('four').style.color="black";
       document.getElementById('five').style.color="black";
       document.getElementById('six').style.color="black";
       document.getElementById('seven').style.color="black";
       document.getElementById('pic').style.position="relative";
       document.getElementById('pic').style.left="2.2rem";
        break;

         case "two"&&"p3":
         init();
         var request = new XMLHttpRequest();
   request.open("GET", "http://dev.lanbaoo.com/api/weather/forecast?lat=0&lng=0&city&cityId=CN101270101" ,true);
   request.send();
   request.onreadystatechange = function() {
      if (request.readyState===4) {
         if (request.status===200) { 
            var data = JSON.parse(request.responseText);
            // if (data.id) { 
            //  alert(data.city);
               
               
            // } else {
            //     alert("出现错误：") ;
            // }
            document.getElementById("zt2").innerHTML=data.forecastDaily[2].phaseName;
            document.getElementById("zt3").innerHTML=data.forecastDaily[2].tideName;
            document.getElementById("pt1").innerHTML=data.forecastDaily[2].presTime.split(",")[0];
            document.getElementById("pt3").innerHTML=data.forecastDaily[2].presTime.split(",")[1];
            document.getElementById("pt5").innerHTML=data.forecastDaily[2].presTime.split(",")[2];
            document.getElementById("pt7").innerHTML=data.forecastDaily[2].presTime.split(",")[3];
            document.getElementById("pt2").innerHTML=data.forecastDaily[2].presValue.split(",")[0];
            document.getElementById("pt4").innerHTML=data.forecastDaily[2].presValue.split(",")[1];
            document.getElementById("pt6").innerHTML=data.forecastDaily[2].presValue.split(",")[2];
            document.getElementById("pt8").innerHTML=data.forecastDaily[2].presValue.split(",")[3];
             document.getElementById("cl1").innerHTML=data.forecastDaily[2].sunrise.split(":")[0]+":"+data.forecastDaily[2].sunrise.split(":")[1];
            document.getElementById("cl2").innerHTML=data.forecastDaily[2].sunset.split(":")[0]+":"+data.forecastDaily[2].sunset.split(":")[1];
            document.getElementById("li1").innerHTML=data.forecastDaily[2].forecastHourly[0].gap;
             document.getElementById("li2").innerHTML=data.forecastDaily[2].forecastHourly[0].tmp+"°";
            document.getElementById("li3").innerHTML=data.forecastDaily[2].forecastHourly[0].hum+"%";
            document.getElementById("li4").innerHTML=data.forecastDaily[2].forecastHourly[0].pres+"hpa";
            document.getElementById("li5").innerHTML=data.forecastDaily[2].forecastHourly[0].pop+"%";
            document.getElementById("li6").innerHTML=data.forecastDaily[2].forecastHourly[0].windDir;
            document.getElementById("li7").innerHTML=data.forecastDaily[2].forecastHourly[0].windSpd+"km/h";
            document.getElementById("li8").innerHTML=data.forecastDaily[2].forecastHourly[0].windSc;

            document.getElementById("li9").innerHTML=data.forecastDaily[2].forecastHourly[1].gap;
             document.getElementById("li10").innerHTML=data.forecastDaily[2].forecastHourly[1].tmp+"°";
            document.getElementById("li11").innerHTML=data.forecastDaily[2].forecastHourly[1].hum+"%";
            document.getElementById("li12").innerHTML=data.forecastDaily[2].forecastHourly[1].pres+"hpa";
            document.getElementById("li13").innerHTML=data.forecastDaily[2].forecastHourly[1].pop+"%";
            document.getElementById("li14").innerHTML=data.forecastDaily[2].forecastHourly[1].windDir;
            document.getElementById("li15").innerHTML=data.forecastDaily[2].forecastHourly[1].windSpd+"km/h";
            document.getElementById("li16").innerHTML=data.forecastDaily[2].forecastHourly[1].windSc;

            document.getElementById("li17").innerHTML=data.forecastDaily[2].forecastHourly[2].gap;
             document.getElementById("li18").innerHTML=data.forecastDaily[2].forecastHourly[2].tmp+"°";
            document.getElementById("li19").innerHTML=data.forecastDaily[2].forecastHourly[2].hum+"%";
            document.getElementById("li20").innerHTML=data.forecastDaily[2].forecastHourly[2].pres+"hpa";
            document.getElementById("li21").innerHTML=data.forecastDaily[2].forecastHourly[2].pop+"%";
            document.getElementById("li22").innerHTML=data.forecastDaily[2].forecastHourly[2].windDir;
            document.getElementById("li23").innerHTML=data.forecastDaily[2].forecastHourly[2].windSpd+"km/h";
            document.getElementById("li24").innerHTML=data.forecastDaily[2].forecastHourly[2].windSc;

            document.getElementById("li25").innerHTML=data.forecastDaily[2].forecastHourly[3].gap;
             document.getElementById("li26").innerHTML=data.forecastDaily[2].forecastHourly[3].tmp+"°";
            document.getElementById("li27").innerHTML=data.forecastDaily[2].forecastHourly[3].hum+"%";
            document.getElementById("li28").innerHTML=data.forecastDaily[2].forecastHourly[3].pres+"hpa";
            document.getElementById("li29").innerHTML=data.forecastDaily[2].forecastHourly[3].pop+"%";
            document.getElementById("li30").innerHTML=data.forecastDaily[2].forecastHourly[3].windDir;
            document.getElementById("li31").innerHTML=data.forecastDaily[2].forecastHourly[3].windSpd+"km/h";
            document.getElementById("li32").innerHTML=data.forecastDaily[2].forecastHourly[3].windSc;

            document.getElementById("li33").innerHTML=data.forecastDaily[2].forecastHourly[4].gap;
             document.getElementById("li34").innerHTML=data.forecastDaily[2].forecastHourly[4].tmp+"°";
            document.getElementById("li35").innerHTML=data.forecastDaily[2].forecastHourly[4].hum+"%";
            document.getElementById("li36").innerHTML=data.forecastDaily[2].forecastHourly[4].pres+"hpa";
            document.getElementById("li37").innerHTML=data.forecastDaily[2].forecastHourly[4].pop+"%";
            document.getElementById("li38").innerHTML=data.forecastDaily[2].forecastHourly[4].windDir;
            document.getElementById("li39").innerHTML=data.forecastDaily[2].forecastHourly[4].windSpd+"km/h";
            document.getElementById("li40").innerHTML=data.forecastDaily[2].forecastHourly[4].windSc;

            document.getElementById("li41").innerHTML=data.forecastDaily[2].forecastHourly[5].gap;
             document.getElementById("li42").innerHTML=data.forecastDaily[2].forecastHourly[5].tmp+"°";
            document.getElementById("li43").innerHTML=data.forecastDaily[2].forecastHourly[5].hum+"%";
            document.getElementById("li44").innerHTML=data.forecastDaily[2].forecastHourly[5].pres+"hpa";
            document.getElementById("li45").innerHTML=data.forecastDaily[2].forecastHourly[5].pop+"%";
            document.getElementById("li46").innerHTML=data.forecastDaily[2].forecastHourly[5].windDir;
            document.getElementById("li47").innerHTML=data.forecastDaily[2].forecastHourly[5].windSpd+"km/h";
            document.getElementById("li48").innerHTML=data.forecastDaily[2].forecastHourly[5].windSc;

            document.getElementById("li49").innerHTML=data.forecastDaily[2].forecastHourly[6].gap;
             document.getElementById("li50").innerHTML=data.forecastDaily[2].forecastHourly[6].tmp+"°";
            document.getElementById("li51").innerHTML=data.forecastDaily[2].forecastHourly[6].hum+"%";
            document.getElementById("li52").innerHTML=data.forecastDaily[2].forecastHourly[6].pres+"hpa";
            document.getElementById("li53").innerHTML=data.forecastDaily[2].forecastHourly[6].pop+"%";
            document.getElementById("li54").innerHTML=data.forecastDaily[2].forecastHourly[6].windDir;
            document.getElementById("li55").innerHTML=data.forecastDaily[2].forecastHourly[6].windSpd+"km/h";
            document.getElementById("li56").innerHTML=data.forecastDaily[2].forecastHourly[6].windSc;

            document.getElementById("li57").innerHTML=data.forecastDaily[2].forecastHourly[7].gap;
             document.getElementById("li58").innerHTML=data.forecastDaily[2].forecastHourly[7].tmp+"°";
            document.getElementById("li59").innerHTML=data.forecastDaily[2].forecastHourly[7].hum+"%";
            document.getElementById("li60").innerHTML=data.forecastDaily[2].forecastHourly[7].pres+"hpa";
            document.getElementById("li61").innerHTML=data.forecastDaily[2].forecastHourly[7].pop+"%";
            document.getElementById("li62").innerHTML=data.forecastDaily[2].forecastHourly[7].windDir;
            document.getElementById("li63").innerHTML=data.forecastDaily[2].forecastHourly[7].windSpd+"km/h";
            document.getElementById("li64").innerHTML=data.forecastDaily[2].forecastHourly[7].windSc;

            document.getElementById("li65").innerHTML=data.forecastDaily[2].forecastHourly[8].gap;
             document.getElementById("li66").innerHTML=data.forecastDaily[2].forecastHourly[8].tmp+"°";
            document.getElementById("li67").innerHTML=data.forecastDaily[2].forecastHourly[8].hum+"%";
            document.getElementById("li68").innerHTML=data.forecastDaily[2].forecastHourly[8].pres+"hpa";
            document.getElementById("li69").innerHTML=data.forecastDaily[2].forecastHourly[8].pop+"%";
            document.getElementById("li70").innerHTML=data.forecastDaily[2].forecastHourly[8].windDir;
            document.getElementById("li71").innerHTML=data.forecastDaily[2].forecastHourly[8].windSpd+"km/h";
            document.getElementById("li72").innerHTML=data.forecastDaily[2].forecastHourly[8].windSc;

            document.getElementById("li73").innerHTML=data.forecastDaily[2].forecastHourly[9].gap;
             document.getElementById("li74").innerHTML=data.forecastDaily[2].forecastHourly[9].tmp+"°";
            document.getElementById("li75").innerHTML=data.forecastDaily[2].forecastHourly[9].hum+"%";
            document.getElementById("li76").innerHTML=data.forecastDaily[2].forecastHourly[9].pres+"hpa";
            document.getElementById("li77").innerHTML=data.forecastDaily[2].forecastHourly[9].pop+"%";
            document.getElementById("li78").innerHTML=data.forecastDaily[2].forecastHourly[9].windDir;
            document.getElementById("li79").innerHTML=data.forecastDaily[2].forecastHourly[9].windSpd+"km/h";
            document.getElementById("li80").innerHTML=data.forecastDaily[2].forecastHourly[9].windSc;

            document.getElementById("li81").innerHTML=data.forecastDaily[2].forecastHourly[10].gap;
             document.getElementById("li82").innerHTML=data.forecastDaily[2].forecastHourly[10].tmp+"°";
            document.getElementById("li83").innerHTML=data.forecastDaily[2].forecastHourly[10].hum+"%";
            document.getElementById("li84").innerHTML=data.forecastDaily[2].forecastHourly[10].pres+"hpa";
            document.getElementById("li85").innerHTML=data.forecastDaily[2].forecastHourly[10].pop+"%";
            document.getElementById("li86").innerHTML=data.forecastDaily[2].forecastHourly[10].windDir;
            document.getElementById("li87").innerHTML=data.forecastDaily[2].forecastHourly[10].windSpd+"km/h";
            document.getElementById("li88").innerHTML=data.forecastDaily[2].forecastHourly[10].windSc;

            document.getElementById("li89").innerHTML=data.forecastDaily[2].forecastHourly[11].gap;
             document.getElementById("li90").innerHTML=data.forecastDaily[2].forecastHourly[11].tmp+"°";
            document.getElementById("li91").innerHTML=data.forecastDaily[2].forecastHourly[11].hum+"%";
            document.getElementById("li92").innerHTML=data.forecastDaily[2].forecastHourly[11].pres+"hpa";
            document.getElementById("li93").innerHTML=data.forecastDaily[2].forecastHourly[11].pop+"%";
            document.getElementById("li94").innerHTML=data.forecastDaily[2].forecastHourly[11].windDir;
            document.getElementById("li95").innerHTML=data.forecastDaily[2].forecastHourly[11].windSpd+"km/h";
            document.getElementById("li96").innerHTML=data.forecastDaily[2].forecastHourly[11].windSc;

            document.getElementById("li97").innerHTML=data.forecastDaily[2].forecastHourly[12].gap;
             document.getElementById("li98").innerHTML=data.forecastDaily[2].forecastHourly[12].tmp+"°";
            document.getElementById("li99").innerHTML=data.forecastDaily[2].forecastHourly[12].hum+"%";
            document.getElementById("li100").innerHTML=data.forecastDaily[2].forecastHourly[12].pres+"hpa";
            document.getElementById("li101").innerHTML=data.forecastDaily[2].forecastHourly[12].pop+"%";
            document.getElementById("li102").innerHTML=data.forecastDaily[2].forecastHourly[12].windDir;
            document.getElementById("li103").innerHTML=data.forecastDaily[2].forecastHourly[12].windSpd+"km/h";
            document.getElementById("li104").innerHTML=data.forecastDaily[2].forecastHourly[12].windSc;

            document.getElementById("li105").innerHTML=data.forecastDaily[2].forecastHourly[13].gap;
             document.getElementById("li106").innerHTML=data.forecastDaily[2].forecastHourly[13].tmp+"°";
            document.getElementById("li107").innerHTML=data.forecastDaily[2].forecastHourly[13].hum+"%";
            document.getElementById("li108").innerHTML=data.forecastDaily[2].forecastHourly[13].pres+"hpa";
            document.getElementById("li109").innerHTML=data.forecastDaily[2].forecastHourly[13].pop+"%";
            document.getElementById("li110").innerHTML=data.forecastDaily[2].forecastHourly[13].windDir;
            document.getElementById("li111").innerHTML=data.forecastDaily[2].forecastHourly[13].windSpd+"km/h";
            document.getElementById("li112").innerHTML=data.forecastDaily[2].forecastHourly[13].windSc;

            document.getElementById("li113").innerHTML=data.forecastDaily[2].forecastHourly[14].gap;
             document.getElementById("li114").innerHTML=data.forecastDaily[2].forecastHourly[14].tmp+"°";
            document.getElementById("li115").innerHTML=data.forecastDaily[2].forecastHourly[14].hum+"%";
            document.getElementById("li116").innerHTML=data.forecastDaily[2].forecastHourly[14].pres+"hpa";
            document.getElementById("li117").innerHTML=data.forecastDaily[2].forecastHourly[14].pop+"%";
            document.getElementById("li118").innerHTML=data.forecastDaily[2].forecastHourly[14].windDir;
            document.getElementById("li119").innerHTML=data.forecastDaily[2].forecastHourly[14].windSpd+"km/h";
            document.getElementById("li120").innerHTML=data.forecastDaily[2].forecastHourly[14].windSc;

            document.getElementById("li121").innerHTML=data.forecastDaily[2].forecastHourly[15].gap;
             document.getElementById("li122").innerHTML=data.forecastDaily[2].forecastHourly[15].tmp+"°";
            document.getElementById("li123").innerHTML=data.forecastDaily[2].forecastHourly[15].hum+"%";
            document.getElementById("li124").innerHTML=data.forecastDaily[2].forecastHourly[15].pres+"hpa";
            document.getElementById("li125").innerHTML=data.forecastDaily[2].forecastHourly[15].pop+"%";
            document.getElementById("li126").innerHTML=data.forecastDaily[2].forecastHourly[15].windDir;
            document.getElementById("li127").innerHTML=data.forecastDaily[2].forecastHourly[15].windSpd+"km/h";
            document.getElementById("li128").innerHTML=data.forecastDaily[2].forecastHourly[15].windSc;

            document.getElementById("li129").innerHTML=data.forecastDaily[2].forecastHourly[16].gap;
             document.getElementById("li130").innerHTML=data.forecastDaily[2].forecastHourly[16].tmp+"°";
            document.getElementById("li131").innerHTML=data.forecastDaily[2].forecastHourly[16].hum+"%";
            document.getElementById("li132").innerHTML=data.forecastDaily[2].forecastHourly[16].pres+"hpa";
            document.getElementById("li133").innerHTML=data.forecastDaily[2].forecastHourly[16].pop+"%";
            document.getElementById("li134").innerHTML=data.forecastDaily[2].forecastHourly[16].windDir;
            document.getElementById("li135").innerHTML=data.forecastDaily[2].forecastHourly[16].windSpd+"km/h";
            document.getElementById("li136").innerHTML=data.forecastDaily[2].forecastHourly[16].windSc;

            document.getElementById("li137").innerHTML=data.forecastDaily[2].forecastHourly[17].gap;
             document.getElementById("li138").innerHTML=data.forecastDaily[2].forecastHourly[17].tmp+"°";
            document.getElementById("li139").innerHTML=data.forecastDaily[2].forecastHourly[17].hum+"%";
            document.getElementById("li140").innerHTML=data.forecastDaily[2].forecastHourly[17].pres+"hpa";
            document.getElementById("li141").innerHTML=data.forecastDaily[2].forecastHourly[17].pop+"%";
            document.getElementById("li142").innerHTML=data.forecastDaily[2].forecastHourly[17].windDir;
            document.getElementById("li143").innerHTML=data.forecastDaily[2].forecastHourly[17].windSpd+"km/h";
            document.getElementById("li144").innerHTML=data.forecastDaily[2].forecastHourly[17].windSc;

            document.getElementById("li145").innerHTML=data.forecastDaily[2].forecastHourly[18].gap;
             document.getElementById("li146").innerHTML=data.forecastDaily[2].forecastHourly[18].tmp+"°";
            document.getElementById("li147").innerHTML=data.forecastDaily[2].forecastHourly[18].hum+"%";
            document.getElementById("li148").innerHTML=data.forecastDaily[2].forecastHourly[18].pres+"hpa";
            document.getElementById("li149").innerHTML=data.forecastDaily[2].forecastHourly[18].pop+"%";
            document.getElementById("li150").innerHTML=data.forecastDaily[2].forecastHourly[18].windDir;
            document.getElementById("li151").innerHTML=data.forecastDaily[2].forecastHourly[18].windSpd+"km/h";
            document.getElementById("li152").innerHTML=data.forecastDaily[2].forecastHourly[18].windSc;

            document.getElementById("li153").innerHTML=data.forecastDaily[2].forecastHourly[19].gap;
             document.getElementById("li154").innerHTML=data.forecastDaily[2].forecastHourly[19].tmp+"°";
            document.getElementById("li155").innerHTML=data.forecastDaily[2].forecastHourly[19].hum+"%";
            document.getElementById("li156").innerHTML=data.forecastDaily[2].forecastHourly[19].pres+"hpa";
            document.getElementById("li157").innerHTML=data.forecastDaily[2].forecastHourly[19].pop+"%";
            document.getElementById("li158").innerHTML=data.forecastDaily[2].forecastHourly[19].windDir;
            document.getElementById("li159").innerHTML=data.forecastDaily[2].forecastHourly[19].windSpd+"km/h";
            document.getElementById("li160").innerHTML=data.forecastDaily[2].forecastHourly[19].windSc;

            document.getElementById("li161").innerHTML=data.forecastDaily[2].forecastHourly[20].gap;
             document.getElementById("li162").innerHTML=data.forecastDaily[2].forecastHourly[20].tmp+"°";
            document.getElementById("li163").innerHTML=data.forecastDaily[2].forecastHourly[20].hum+"%";
            document.getElementById("li164").innerHTML=data.forecastDaily[2].forecastHourly[20].pres+"hpa";
            document.getElementById("li165").innerHTML=data.forecastDaily[2].forecastHourly[20].pop+"%";
            document.getElementById("li166").innerHTML=data.forecastDaily[2].forecastHourly[20].windDir;
            document.getElementById("li167").innerHTML=data.forecastDaily[2].forecastHourly[20].windSpd+"km/h";
            document.getElementById("li168").innerHTML=data.forecastDaily[2].forecastHourly[20].windSc;

            document.getElementById("li169").innerHTML=data.forecastDaily[2].forecastHourly[21].gap;
             document.getElementById("li170").innerHTML=data.forecastDaily[2].forecastHourly[21].tmp+"°";
            document.getElementById("li171").innerHTML=data.forecastDaily[2].forecastHourly[21].hum+"%";
            document.getElementById("li172").innerHTML=data.forecastDaily[2].forecastHourly[21].pres+"hpa";
            document.getElementById("li173").innerHTML=data.forecastDaily[2].forecastHourly[21].pop+"%";
            document.getElementById("li174").innerHTML=data.forecastDaily[2].forecastHourly[21].windDir;
            document.getElementById("li175").innerHTML=data.forecastDaily[2].forecastHourly[21].windSpd+"km/h";
            document.getElementById("li176").innerHTML=data.forecastDaily[2].forecastHourly[21].windSc;

            document.getElementById("li177").innerHTML=data.forecastDaily[2].forecastHourly[22].gap;
             document.getElementById("li178").innerHTML=data.forecastDaily[2].forecastHourly[22].tmp+"°";
            document.getElementById("li179").innerHTML=data.forecastDaily[2].forecastHourly[22].hum+"%";
            document.getElementById("li180").innerHTML=data.forecastDaily[2].forecastHourly[22].pres+"hpa";
            document.getElementById("li181").innerHTML=data.forecastDaily[2].forecastHourly[22].pop+"%";
            document.getElementById("li182").innerHTML=data.forecastDaily[2].forecastHourly[22].windDir;
            document.getElementById("li183").innerHTML=data.forecastDaily[2].forecastHourly[22].windSpd+"km/h";
            document.getElementById("li184").innerHTML=data.forecastDaily[2].forecastHourly[22].windSc;

            document.getElementById("li185").innerHTML=data.forecastDaily[2].forecastHourly[23].gap;
             document.getElementById("li186").innerHTML=data.forecastDaily[2].forecastHourly[23].tmp+"°";
            document.getElementById("li187").innerHTML=data.forecastDaily[2].forecastHourly[23].hum+"%";
            document.getElementById("li188").innerHTML=data.forecastDaily[2].forecastHourly[23].pres+"hpa";
            document.getElementById("li189").innerHTML=data.forecastDaily[2].forecastHourly[23].pop+"%";
            document.getElementById("li190").innerHTML=data.forecastDaily[2].forecastHourly[23].windDir;
            document.getElementById("li191").innerHTML=data.forecastDaily[2].forecastHourly[23].windSpd+"km/h";
            document.getElementById("li192").innerHTML=data.forecastDaily[2].forecastHourly[23].windSc;




            


            // var th=parseInt(myDate.getHours()),i=0,k=0,b=0;
          
            //   var ulli= document.getElementById("contain-table").getElementsByTagName('ul');
            // var c=ulli[i].getElementsByTagName("li");
            // [0].innerHTML=data.forecastDaily[k].forecastHourly[i].gap;}
            }
          else {
            alert("发生错误：" + request.status);
         }
      } 
   }
       document.getElementById('two').style.color="#72cff1";
       document.getElementById('three').style.color="black";
       document.getElementById('four').style.color="black";
       document.getElementById('five').style.color="black";
       document.getElementById('six').style.color="black";
       document.getElementById('seven').style.color="black";
       document.getElementById('one').style.color="black";
       document.getElementById('pic').style.position="relative";
       document.getElementById('pic').style.left="4.4rem";
        break;

         case "three"&&"p4":
         init();
       var request = new XMLHttpRequest();
   request.open("GET", "http://dev.lanbaoo.com/api/weather/forecast?lat=0&lng=0&city&cityId=CN101270101" ,true);
   request.send();
   request.onreadystatechange = function() {
      if (request.readyState===4) {
         if (request.status===200) { 
            var data = JSON.parse(request.responseText);
            // if (data.id) { 
            //  alert(data.city);
               
               
            // } else {
            //     alert("出现错误：") ;
            // }
            document.getElementById("zt2").innerHTML=data.forecastDaily[3].phaseName;
            document.getElementById("zt3").innerHTML=data.forecastDaily[3].tideName;
            document.getElementById("pt1").innerHTML=data.forecastDaily[3].presTime.split(",")[0];
            document.getElementById("pt3").innerHTML=data.forecastDaily[3].presTime.split(",")[1];
            document.getElementById("pt5").innerHTML=data.forecastDaily[3].presTime.split(",")[2];
            document.getElementById("pt7").innerHTML=data.forecastDaily[3].presTime.split(",")[3];
            document.getElementById("pt2").innerHTML=data.forecastDaily[3].presValue.split(",")[0];
            document.getElementById("pt4").innerHTML=data.forecastDaily[3].presValue.split(",")[1];
            document.getElementById("pt6").innerHTML=data.forecastDaily[3].presValue.split(",")[2];
            document.getElementById("pt8").innerHTML=data.forecastDaily[3].presValue.split(",")[3];
             document.getElementById("cl1").innerHTML=data.forecastDaily[3].sunrise.split(":")[0]+":"+data.forecastDaily[3].sunrise.split(":")[1];
            document.getElementById("cl2").innerHTML=data.forecastDaily[3].sunset.split(":")[0]+":"+data.forecastDaily[3].sunset.split(":")[1];
            document.getElementById("li1").innerHTML=data.forecastDaily[3].forecastHourly[0].gap;
             document.getElementById("li2").innerHTML=data.forecastDaily[3].forecastHourly[0].tmp+"°";
            document.getElementById("li3").innerHTML=data.forecastDaily[3].forecastHourly[0].hum+"%";
            document.getElementById("li4").innerHTML=data.forecastDaily[3].forecastHourly[0].pres+"hpa";
            document.getElementById("li5").innerHTML=data.forecastDaily[3].forecastHourly[0].pop+"%";
            document.getElementById("li6").innerHTML=data.forecastDaily[3].forecastHourly[0].windDir;
            document.getElementById("li7").innerHTML=data.forecastDaily[3].forecastHourly[0].windSpd+"km/h";
            document.getElementById("li8").innerHTML=data.forecastDaily[3].forecastHourly[0].windSc;

            document.getElementById("li9").innerHTML=data.forecastDaily[3].forecastHourly[1].gap;
             document.getElementById("li10").innerHTML=data.forecastDaily[3].forecastHourly[1].tmp+"°";
            document.getElementById("li11").innerHTML=data.forecastDaily[3].forecastHourly[1].hum+"%";
            document.getElementById("li12").innerHTML=data.forecastDaily[3].forecastHourly[1].pres+"hpa";
            document.getElementById("li13").innerHTML=data.forecastDaily[3].forecastHourly[1].pop+"%";
            document.getElementById("li14").innerHTML=data.forecastDaily[3].forecastHourly[1].windDir;
            document.getElementById("li15").innerHTML=data.forecastDaily[3].forecastHourly[1].windSpd+"km/h";
            document.getElementById("li16").innerHTML=data.forecastDaily[3].forecastHourly[1].windSc;

            document.getElementById("li17").innerHTML=data.forecastDaily[3].forecastHourly[2].gap;
             document.getElementById("li18").innerHTML=data.forecastDaily[3].forecastHourly[2].tmp+"°";
            document.getElementById("li19").innerHTML=data.forecastDaily[3].forecastHourly[2].hum+"%";
            document.getElementById("li20").innerHTML=data.forecastDaily[3].forecastHourly[2].pres+"hpa";
            document.getElementById("li21").innerHTML=data.forecastDaily[3].forecastHourly[2].pop+"%";
            document.getElementById("li22").innerHTML=data.forecastDaily[3].forecastHourly[2].windDir;
            document.getElementById("li23").innerHTML=data.forecastDaily[3].forecastHourly[2].windSpd+"km/h";
            document.getElementById("li24").innerHTML=data.forecastDaily[3].forecastHourly[2].windSc;

            document.getElementById("li25").innerHTML=data.forecastDaily[3].forecastHourly[3].gap;
             document.getElementById("li26").innerHTML=data.forecastDaily[3].forecastHourly[3].tmp+"°";
            document.getElementById("li27").innerHTML=data.forecastDaily[3].forecastHourly[3].hum+"%";
            document.getElementById("li28").innerHTML=data.forecastDaily[3].forecastHourly[3].pres+"hpa";
            document.getElementById("li29").innerHTML=data.forecastDaily[3].forecastHourly[3].pop+"%";
            document.getElementById("li30").innerHTML=data.forecastDaily[3].forecastHourly[3].windDir;
            document.getElementById("li31").innerHTML=data.forecastDaily[3].forecastHourly[3].windSpd+"km/h";
            document.getElementById("li32").innerHTML=data.forecastDaily[3].forecastHourly[3].windSc;

            document.getElementById("li33").innerHTML=data.forecastDaily[3].forecastHourly[4].gap;
             document.getElementById("li34").innerHTML=data.forecastDaily[3].forecastHourly[4].tmp+"°";
            document.getElementById("li35").innerHTML=data.forecastDaily[3].forecastHourly[4].hum+"%";
            document.getElementById("li36").innerHTML=data.forecastDaily[3].forecastHourly[4].pres+"hpa";
            document.getElementById("li37").innerHTML=data.forecastDaily[3].forecastHourly[4].pop+"%";
            document.getElementById("li38").innerHTML=data.forecastDaily[3].forecastHourly[4].windDir;
            document.getElementById("li39").innerHTML=data.forecastDaily[3].forecastHourly[4].windSpd+"km/h";
            document.getElementById("li40").innerHTML=data.forecastDaily[3].forecastHourly[4].windSc;

            document.getElementById("li41").innerHTML=data.forecastDaily[3].forecastHourly[5].gap;
             document.getElementById("li42").innerHTML=data.forecastDaily[3].forecastHourly[5].tmp+"°";
            document.getElementById("li43").innerHTML=data.forecastDaily[3].forecastHourly[5].hum+"%";
            document.getElementById("li44").innerHTML=data.forecastDaily[3].forecastHourly[5].pres+"hpa";
            document.getElementById("li45").innerHTML=data.forecastDaily[3].forecastHourly[5].pop+"%";
            document.getElementById("li46").innerHTML=data.forecastDaily[3].forecastHourly[5].windDir;
            document.getElementById("li47").innerHTML=data.forecastDaily[3].forecastHourly[5].windSpd+"km/h";
            document.getElementById("li48").innerHTML=data.forecastDaily[3].forecastHourly[5].windSc;

            document.getElementById("li49").innerHTML=data.forecastDaily[3].forecastHourly[6].gap;
             document.getElementById("li50").innerHTML=data.forecastDaily[3].forecastHourly[6].tmp+"°";
            document.getElementById("li51").innerHTML=data.forecastDaily[3].forecastHourly[6].hum+"%";
            document.getElementById("li52").innerHTML=data.forecastDaily[3].forecastHourly[6].pres+"hpa";
            document.getElementById("li53").innerHTML=data.forecastDaily[3].forecastHourly[6].pop+"%";
            document.getElementById("li54").innerHTML=data.forecastDaily[3].forecastHourly[6].windDir;
            document.getElementById("li55").innerHTML=data.forecastDaily[3].forecastHourly[6].windSpd+"km/h";
            document.getElementById("li56").innerHTML=data.forecastDaily[3].forecastHourly[6].windSc;

            document.getElementById("li57").innerHTML=data.forecastDaily[3].forecastHourly[7].gap;
             document.getElementById("li58").innerHTML=data.forecastDaily[3].forecastHourly[7].tmp+"°";
            document.getElementById("li59").innerHTML=data.forecastDaily[3].forecastHourly[7].hum+"%";
            document.getElementById("li60").innerHTML=data.forecastDaily[3].forecastHourly[7].pres+"hpa";
            document.getElementById("li61").innerHTML=data.forecastDaily[3].forecastHourly[7].pop+"%";
            document.getElementById("li62").innerHTML=data.forecastDaily[3].forecastHourly[7].windDir;
            document.getElementById("li63").innerHTML=data.forecastDaily[3].forecastHourly[7].windSpd+"km/h";
            document.getElementById("li64").innerHTML=data.forecastDaily[3].forecastHourly[7].windSc;

            document.getElementById("li65").innerHTML=data.forecastDaily[3].forecastHourly[8].gap;
             document.getElementById("li66").innerHTML=data.forecastDaily[3].forecastHourly[8].tmp+"°";
            document.getElementById("li67").innerHTML=data.forecastDaily[3].forecastHourly[8].hum+"%";
            document.getElementById("li68").innerHTML=data.forecastDaily[3].forecastHourly[8].pres+"hpa";
            document.getElementById("li69").innerHTML=data.forecastDaily[3].forecastHourly[8].pop+"%";
            document.getElementById("li70").innerHTML=data.forecastDaily[3].forecastHourly[8].windDir;
            document.getElementById("li71").innerHTML=data.forecastDaily[3].forecastHourly[8].windSpd+"km/h";
            document.getElementById("li72").innerHTML=data.forecastDaily[3].forecastHourly[8].windSc;

            document.getElementById("li73").innerHTML=data.forecastDaily[3].forecastHourly[9].gap;
             document.getElementById("li74").innerHTML=data.forecastDaily[3].forecastHourly[9].tmp+"°";
            document.getElementById("li75").innerHTML=data.forecastDaily[3].forecastHourly[9].hum+"%";
            document.getElementById("li76").innerHTML=data.forecastDaily[3].forecastHourly[9].pres+"hpa";
            document.getElementById("li77").innerHTML=data.forecastDaily[3].forecastHourly[9].pop+"%";
            document.getElementById("li78").innerHTML=data.forecastDaily[3].forecastHourly[9].windDir;
            document.getElementById("li79").innerHTML=data.forecastDaily[3].forecastHourly[9].windSpd+"km/h";
            document.getElementById("li80").innerHTML=data.forecastDaily[3].forecastHourly[9].windSc;

            document.getElementById("li81").innerHTML=data.forecastDaily[3].forecastHourly[10].gap;
             document.getElementById("li82").innerHTML=data.forecastDaily[3].forecastHourly[10].tmp+"°";
            document.getElementById("li83").innerHTML=data.forecastDaily[3].forecastHourly[10].hum+"%";
            document.getElementById("li84").innerHTML=data.forecastDaily[3].forecastHourly[10].pres+"hpa";
            document.getElementById("li85").innerHTML=data.forecastDaily[3].forecastHourly[10].pop+"%";
            document.getElementById("li86").innerHTML=data.forecastDaily[3].forecastHourly[10].windDir;
            document.getElementById("li87").innerHTML=data.forecastDaily[3].forecastHourly[10].windSpd+"km/h";
            document.getElementById("li88").innerHTML=data.forecastDaily[3].forecastHourly[10].windSc;

            document.getElementById("li89").innerHTML=data.forecastDaily[3].forecastHourly[11].gap;
             document.getElementById("li90").innerHTML=data.forecastDaily[3].forecastHourly[11].tmp+"°";
            document.getElementById("li91").innerHTML=data.forecastDaily[3].forecastHourly[11].hum+"%";
            document.getElementById("li92").innerHTML=data.forecastDaily[3].forecastHourly[11].pres+"hpa";
            document.getElementById("li93").innerHTML=data.forecastDaily[3].forecastHourly[11].pop+"%";
            document.getElementById("li94").innerHTML=data.forecastDaily[3].forecastHourly[11].windDir;
            document.getElementById("li95").innerHTML=data.forecastDaily[3].forecastHourly[11].windSpd+"km/h";
            document.getElementById("li96").innerHTML=data.forecastDaily[3].forecastHourly[11].windSc;

            document.getElementById("li97").innerHTML=data.forecastDaily[3].forecastHourly[12].gap;
             document.getElementById("li98").innerHTML=data.forecastDaily[3].forecastHourly[12].tmp+"°";
            document.getElementById("li99").innerHTML=data.forecastDaily[3].forecastHourly[12].hum+"%";
            document.getElementById("li100").innerHTML=data.forecastDaily[3].forecastHourly[12].pres+"hpa";
            document.getElementById("li101").innerHTML=data.forecastDaily[3].forecastHourly[12].pop+"%";
            document.getElementById("li102").innerHTML=data.forecastDaily[3].forecastHourly[12].windDir;
            document.getElementById("li103").innerHTML=data.forecastDaily[3].forecastHourly[12].windSpd+"km/h";
            document.getElementById("li104").innerHTML=data.forecastDaily[3].forecastHourly[12].windSc;

            document.getElementById("li105").innerHTML=data.forecastDaily[3].forecastHourly[13].gap;
             document.getElementById("li106").innerHTML=data.forecastDaily[3].forecastHourly[13].tmp+"°";
            document.getElementById("li107").innerHTML=data.forecastDaily[3].forecastHourly[13].hum+"%";
            document.getElementById("li108").innerHTML=data.forecastDaily[3].forecastHourly[13].pres+"hpa";
            document.getElementById("li109").innerHTML=data.forecastDaily[3].forecastHourly[13].pop+"%";
            document.getElementById("li110").innerHTML=data.forecastDaily[3].forecastHourly[13].windDir;
            document.getElementById("li111").innerHTML=data.forecastDaily[3].forecastHourly[13].windSpd+"km/h";
            document.getElementById("li112").innerHTML=data.forecastDaily[3].forecastHourly[13].windSc;

            document.getElementById("li113").innerHTML=data.forecastDaily[3].forecastHourly[14].gap;
             document.getElementById("li114").innerHTML=data.forecastDaily[3].forecastHourly[14].tmp+"°";
            document.getElementById("li115").innerHTML=data.forecastDaily[3].forecastHourly[14].hum+"%";
            document.getElementById("li116").innerHTML=data.forecastDaily[3].forecastHourly[14].pres+"hpa";
            document.getElementById("li117").innerHTML=data.forecastDaily[3].forecastHourly[14].pop+"%";
            document.getElementById("li118").innerHTML=data.forecastDaily[3].forecastHourly[14].windDir;
            document.getElementById("li119").innerHTML=data.forecastDaily[3].forecastHourly[14].windSpd+"km/h";
            document.getElementById("li120").innerHTML=data.forecastDaily[3].forecastHourly[14].windSc;

            document.getElementById("li121").innerHTML=data.forecastDaily[3].forecastHourly[15].gap;
             document.getElementById("li122").innerHTML=data.forecastDaily[3].forecastHourly[15].tmp+"°";
            document.getElementById("li123").innerHTML=data.forecastDaily[3].forecastHourly[15].hum+"%";
            document.getElementById("li124").innerHTML=data.forecastDaily[3].forecastHourly[15].pres+"hpa";
            document.getElementById("li125").innerHTML=data.forecastDaily[3].forecastHourly[15].pop+"%";
            document.getElementById("li126").innerHTML=data.forecastDaily[3].forecastHourly[15].windDir;
            document.getElementById("li127").innerHTML=data.forecastDaily[3].forecastHourly[15].windSpd+"km/h";
            document.getElementById("li128").innerHTML=data.forecastDaily[3].forecastHourly[15].windSc;

            document.getElementById("li129").innerHTML=data.forecastDaily[3].forecastHourly[16].gap;
             document.getElementById("li130").innerHTML=data.forecastDaily[3].forecastHourly[16].tmp+"°";
            document.getElementById("li131").innerHTML=data.forecastDaily[3].forecastHourly[16].hum+"%";
            document.getElementById("li132").innerHTML=data.forecastDaily[3].forecastHourly[16].pres+"hpa";
            document.getElementById("li133").innerHTML=data.forecastDaily[3].forecastHourly[16].pop+"%";
            document.getElementById("li134").innerHTML=data.forecastDaily[3].forecastHourly[16].windDir;
            document.getElementById("li135").innerHTML=data.forecastDaily[3].forecastHourly[16].windSpd+"km/h";
            document.getElementById("li136").innerHTML=data.forecastDaily[3].forecastHourly[16].windSc;

            document.getElementById("li137").innerHTML=data.forecastDaily[3].forecastHourly[17].gap;
             document.getElementById("li138").innerHTML=data.forecastDaily[3].forecastHourly[17].tmp+"°";
            document.getElementById("li139").innerHTML=data.forecastDaily[3].forecastHourly[17].hum+"%";
            document.getElementById("li140").innerHTML=data.forecastDaily[3].forecastHourly[17].pres+"hpa";
            document.getElementById("li141").innerHTML=data.forecastDaily[3].forecastHourly[17].pop+"%";
            document.getElementById("li142").innerHTML=data.forecastDaily[3].forecastHourly[17].windDir;
            document.getElementById("li143").innerHTML=data.forecastDaily[3].forecastHourly[17].windSpd+"km/h";
            document.getElementById("li144").innerHTML=data.forecastDaily[3].forecastHourly[17].windSc;

            document.getElementById("li145").innerHTML=data.forecastDaily[3].forecastHourly[18].gap;
             document.getElementById("li146").innerHTML=data.forecastDaily[3].forecastHourly[18].tmp+"°";
            document.getElementById("li147").innerHTML=data.forecastDaily[3].forecastHourly[18].hum+"%";
            document.getElementById("li148").innerHTML=data.forecastDaily[3].forecastHourly[18].pres+"hpa";
            document.getElementById("li149").innerHTML=data.forecastDaily[3].forecastHourly[18].pop+"%";
            document.getElementById("li150").innerHTML=data.forecastDaily[3].forecastHourly[18].windDir;
            document.getElementById("li151").innerHTML=data.forecastDaily[3].forecastHourly[18].windSpd+"km/h";
            document.getElementById("li152").innerHTML=data.forecastDaily[3].forecastHourly[18].windSc;

            document.getElementById("li153").innerHTML=data.forecastDaily[3].forecastHourly[19].gap;
             document.getElementById("li154").innerHTML=data.forecastDaily[3].forecastHourly[19].tmp+"°";
            document.getElementById("li155").innerHTML=data.forecastDaily[3].forecastHourly[19].hum+"%";
            document.getElementById("li156").innerHTML=data.forecastDaily[3].forecastHourly[19].pres+"hpa";
            document.getElementById("li157").innerHTML=data.forecastDaily[3].forecastHourly[19].pop+"%";
            document.getElementById("li158").innerHTML=data.forecastDaily[3].forecastHourly[19].windDir;
            document.getElementById("li159").innerHTML=data.forecastDaily[3].forecastHourly[19].windSpd+"km/h";
            document.getElementById("li160").innerHTML=data.forecastDaily[3].forecastHourly[19].windSc;

            document.getElementById("li161").innerHTML=data.forecastDaily[3].forecastHourly[20].gap;
             document.getElementById("li162").innerHTML=data.forecastDaily[3].forecastHourly[20].tmp+"°";
            document.getElementById("li163").innerHTML=data.forecastDaily[3].forecastHourly[20].hum+"%";
            document.getElementById("li164").innerHTML=data.forecastDaily[3].forecastHourly[20].pres+"hpa";
            document.getElementById("li165").innerHTML=data.forecastDaily[3].forecastHourly[20].pop+"%";
            document.getElementById("li166").innerHTML=data.forecastDaily[3].forecastHourly[20].windDir;
            document.getElementById("li167").innerHTML=data.forecastDaily[3].forecastHourly[20].windSpd+"km/h";
            document.getElementById("li168").innerHTML=data.forecastDaily[3].forecastHourly[20].windSc;

            document.getElementById("li169").innerHTML=data.forecastDaily[3].forecastHourly[21].gap;
             document.getElementById("li170").innerHTML=data.forecastDaily[3].forecastHourly[21].tmp+"°";
            document.getElementById("li171").innerHTML=data.forecastDaily[3].forecastHourly[21].hum+"%";
            document.getElementById("li172").innerHTML=data.forecastDaily[3].forecastHourly[21].pres+"hpa";
            document.getElementById("li173").innerHTML=data.forecastDaily[3].forecastHourly[21].pop+"%";
            document.getElementById("li174").innerHTML=data.forecastDaily[3].forecastHourly[21].windDir;
            document.getElementById("li175").innerHTML=data.forecastDaily[3].forecastHourly[21].windSpd+"km/h";
            document.getElementById("li176").innerHTML=data.forecastDaily[3].forecastHourly[21].windSc;

            document.getElementById("li177").innerHTML=data.forecastDaily[3].forecastHourly[22].gap;
             document.getElementById("li178").innerHTML=data.forecastDaily[3].forecastHourly[22].tmp+"°";
            document.getElementById("li179").innerHTML=data.forecastDaily[3].forecastHourly[22].hum+"%";
            document.getElementById("li180").innerHTML=data.forecastDaily[3].forecastHourly[22].pres+"hpa";
            document.getElementById("li181").innerHTML=data.forecastDaily[3].forecastHourly[22].pop+"%";
            document.getElementById("li182").innerHTML=data.forecastDaily[3].forecastHourly[22].windDir;
            document.getElementById("li183").innerHTML=data.forecastDaily[3].forecastHourly[22].windSpd+"km/h";
            document.getElementById("li184").innerHTML=data.forecastDaily[3].forecastHourly[22].windSc;

            document.getElementById("li185").innerHTML=data.forecastDaily[3].forecastHourly[23].gap;
             document.getElementById("li186").innerHTML=data.forecastDaily[3].forecastHourly[23].tmp+"°";
            document.getElementById("li187").innerHTML=data.forecastDaily[3].forecastHourly[23].hum+"%";
            document.getElementById("li188").innerHTML=data.forecastDaily[3].forecastHourly[23].pres+"hpa";
            document.getElementById("li189").innerHTML=data.forecastDaily[3].forecastHourly[23].pop+"%";
            document.getElementById("li190").innerHTML=data.forecastDaily[3].forecastHourly[23].windDir;
            document.getElementById("li191").innerHTML=data.forecastDaily[3].forecastHourly[23].windSpd+"km/h";
            document.getElementById("li192").innerHTML=data.forecastDaily[3].forecastHourly[23].windSc;




            


            // var th=parseInt(myDate.getHours()),i=0,k=0,b=0;
          
            //   var ulli= document.getElementById("contain-table").getElementsByTagName('ul');
            // var c=ulli[i].getElementsByTagName("li");
            // [0].innerHTML=data.forecastDaily[k].forecastHourly[i].gap;}
            }
          else {
            alert("发生错误：" + request.status);
         }
      } 
   }
       document.getElementById('two').style.color="black";
        document.getElementById('three').style.color="#72cff1";
       document.getElementById('four').style.color="black";
       document.getElementById('five').style.color="black";
       document.getElementById('six').style.color="black";
       document.getElementById('seven').style.color="black";
       document.getElementById('one').style.color="black";
         document.getElementById('pic').style.position="relative";
       document.getElementById('pic').style.left="6.6rem";
        break;

         case "four"&&"p5":
         init();
         var request = new XMLHttpRequest();
   request.open("GET", "http://dev.lanbaoo.com/api/weather/forecast?lat=0&lng=0&city&cityId=CN101270101" ,true);
   request.send();
   request.onreadystatechange = function() {
      if (request.readyState===4) {
         if (request.status===200) { 
            var data = JSON.parse(request.responseText);
            // if (data.id) { 
            //  alert(data.city);
               
               
            // } else {
            //     alert("出现错误：") ;
            // }
            document.getElementById("zt2").innerHTML=data.forecastDaily[4].phaseName;
            document.getElementById("zt3").innerHTML=data.forecastDaily[4].tideName;
            document.getElementById("pt1").innerHTML=data.forecastDaily[4].presTime.split(",")[0];
            document.getElementById("pt3").innerHTML=data.forecastDaily[4].presTime.split(",")[1];
            document.getElementById("pt5").innerHTML=data.forecastDaily[4].presTime.split(",")[2];
            document.getElementById("pt7").innerHTML=data.forecastDaily[4].presTime.split(",")[3];
            document.getElementById("pt2").innerHTML=data.forecastDaily[4].presValue.split(",")[0];
            document.getElementById("pt4").innerHTML=data.forecastDaily[4].presValue.split(",")[1];
            document.getElementById("pt6").innerHTML=data.forecastDaily[4].presValue.split(",")[2];
            document.getElementById("pt8").innerHTML=data.forecastDaily[4].presValue.split(",")[3];
             document.getElementById("cl1").innerHTML=data.forecastDaily[4].sunrise.split(":")[0]+":"+data.forecastDaily[4].sunrise.split(":")[1];
            document.getElementById("cl2").innerHTML=data.forecastDaily[4].sunset.split(":")[0]+":"+data.forecastDaily[4].sunset.split(":")[1];
            document.getElementById("li1").innerHTML=data.forecastDaily[4].forecastHourly[0].gap;
             document.getElementById("li2").innerHTML=data.forecastDaily[4].forecastHourly[0].tmp+"°";
            document.getElementById("li3").innerHTML=data.forecastDaily[4].forecastHourly[0].hum+"%";
            document.getElementById("li4").innerHTML=data.forecastDaily[4].forecastHourly[0].pres+"hpa";
            document.getElementById("li5").innerHTML=data.forecastDaily[4].forecastHourly[0].pop+"%";
            document.getElementById("li6").innerHTML=data.forecastDaily[4].forecastHourly[0].windDir;
            document.getElementById("li7").innerHTML=data.forecastDaily[4].forecastHourly[0].windSpd+"km/h";
            document.getElementById("li8").innerHTML=data.forecastDaily[4].forecastHourly[0].windSc;

            document.getElementById("li9").innerHTML=data.forecastDaily[4].forecastHourly[1].gap;
             document.getElementById("li10").innerHTML=data.forecastDaily[4].forecastHourly[1].tmp+"°";
            document.getElementById("li11").innerHTML=data.forecastDaily[4].forecastHourly[1].hum+"%";
            document.getElementById("li12").innerHTML=data.forecastDaily[4].forecastHourly[1].pres+"hpa";
            document.getElementById("li13").innerHTML=data.forecastDaily[4].forecastHourly[1].pop+"%";
            document.getElementById("li14").innerHTML=data.forecastDaily[4].forecastHourly[1].windDir;
            document.getElementById("li15").innerHTML=data.forecastDaily[4].forecastHourly[1].windSpd+"km/h";
            document.getElementById("li16").innerHTML=data.forecastDaily[4].forecastHourly[1].windSc;

            document.getElementById("li17").innerHTML=data.forecastDaily[4].forecastHourly[2].gap;
             document.getElementById("li18").innerHTML=data.forecastDaily[4].forecastHourly[2].tmp+"°";
            document.getElementById("li19").innerHTML=data.forecastDaily[4].forecastHourly[2].hum+"%";
            document.getElementById("li20").innerHTML=data.forecastDaily[4].forecastHourly[2].pres+"hpa";
            document.getElementById("li21").innerHTML=data.forecastDaily[4].forecastHourly[2].pop+"%";
            document.getElementById("li22").innerHTML=data.forecastDaily[4].forecastHourly[2].windDir;
            document.getElementById("li23").innerHTML=data.forecastDaily[4].forecastHourly[2].windSpd+"km/h";
            document.getElementById("li24").innerHTML=data.forecastDaily[4].forecastHourly[2].windSc;

            document.getElementById("li25").innerHTML=data.forecastDaily[4].forecastHourly[3].gap;
             document.getElementById("li26").innerHTML=data.forecastDaily[4].forecastHourly[3].tmp+"°";
            document.getElementById("li27").innerHTML=data.forecastDaily[4].forecastHourly[3].hum+"%";
            document.getElementById("li28").innerHTML=data.forecastDaily[4].forecastHourly[3].pres+"hpa";
            document.getElementById("li29").innerHTML=data.forecastDaily[4].forecastHourly[3].pop+"%";
            document.getElementById("li30").innerHTML=data.forecastDaily[4].forecastHourly[3].windDir;
            document.getElementById("li31").innerHTML=data.forecastDaily[4].forecastHourly[3].windSpd+"km/h";
            document.getElementById("li32").innerHTML=data.forecastDaily[4].forecastHourly[3].windSc;

            document.getElementById("li33").innerHTML=data.forecastDaily[4].forecastHourly[4].gap;
             document.getElementById("li34").innerHTML=data.forecastDaily[4].forecastHourly[4].tmp+"°";
            document.getElementById("li35").innerHTML=data.forecastDaily[4].forecastHourly[4].hum+"%";
            document.getElementById("li36").innerHTML=data.forecastDaily[4].forecastHourly[4].pres+"hpa";
            document.getElementById("li37").innerHTML=data.forecastDaily[4].forecastHourly[4].pop+"%";
            document.getElementById("li38").innerHTML=data.forecastDaily[4].forecastHourly[4].windDir;
            document.getElementById("li39").innerHTML=data.forecastDaily[4].forecastHourly[4].windSpd+"km/h";
            document.getElementById("li40").innerHTML=data.forecastDaily[4].forecastHourly[4].windSc;

            document.getElementById("li41").innerHTML=data.forecastDaily[4].forecastHourly[5].gap;
             document.getElementById("li42").innerHTML=data.forecastDaily[4].forecastHourly[5].tmp+"°";
            document.getElementById("li43").innerHTML=data.forecastDaily[4].forecastHourly[5].hum+"%";
            document.getElementById("li44").innerHTML=data.forecastDaily[4].forecastHourly[5].pres+"hpa";
            document.getElementById("li45").innerHTML=data.forecastDaily[4].forecastHourly[5].pop+"%";
            document.getElementById("li46").innerHTML=data.forecastDaily[4].forecastHourly[5].windDir;
            document.getElementById("li47").innerHTML=data.forecastDaily[4].forecastHourly[5].windSpd+"km/h";
            document.getElementById("li48").innerHTML=data.forecastDaily[4].forecastHourly[5].windSc;

            document.getElementById("li49").innerHTML=data.forecastDaily[4].forecastHourly[6].gap;
             document.getElementById("li50").innerHTML=data.forecastDaily[4].forecastHourly[6].tmp+"°";
            document.getElementById("li51").innerHTML=data.forecastDaily[4].forecastHourly[6].hum+"%";
            document.getElementById("li52").innerHTML=data.forecastDaily[4].forecastHourly[6].pres+"hpa";
            document.getElementById("li53").innerHTML=data.forecastDaily[4].forecastHourly[6].pop+"%";
            document.getElementById("li54").innerHTML=data.forecastDaily[4].forecastHourly[6].windDir;
            document.getElementById("li55").innerHTML=data.forecastDaily[4].forecastHourly[6].windSpd+"km/h";
            document.getElementById("li56").innerHTML=data.forecastDaily[4].forecastHourly[6].windSc;

            document.getElementById("li57").innerHTML=data.forecastDaily[4].forecastHourly[7].gap;
             document.getElementById("li58").innerHTML=data.forecastDaily[4].forecastHourly[7].tmp+"°";
            document.getElementById("li59").innerHTML=data.forecastDaily[4].forecastHourly[7].hum+"%";
            document.getElementById("li60").innerHTML=data.forecastDaily[4].forecastHourly[7].pres+"hpa";
            document.getElementById("li61").innerHTML=data.forecastDaily[4].forecastHourly[7].pop+"%";
            document.getElementById("li62").innerHTML=data.forecastDaily[4].forecastHourly[7].windDir;
            document.getElementById("li63").innerHTML=data.forecastDaily[4].forecastHourly[7].windSpd+"km/h";
            document.getElementById("li64").innerHTML=data.forecastDaily[4].forecastHourly[7].windSc;

            document.getElementById("li65").innerHTML=data.forecastDaily[4].forecastHourly[8].gap;
             document.getElementById("li66").innerHTML=data.forecastDaily[4].forecastHourly[8].tmp+"°";
            document.getElementById("li67").innerHTML=data.forecastDaily[4].forecastHourly[8].hum+"%";
            document.getElementById("li68").innerHTML=data.forecastDaily[4].forecastHourly[8].pres+"hpa";
            document.getElementById("li69").innerHTML=data.forecastDaily[4].forecastHourly[8].pop+"%";
            document.getElementById("li70").innerHTML=data.forecastDaily[4].forecastHourly[8].windDir;
            document.getElementById("li71").innerHTML=data.forecastDaily[4].forecastHourly[8].windSpd+"km/h";
            document.getElementById("li72").innerHTML=data.forecastDaily[4].forecastHourly[8].windSc;

            document.getElementById("li73").innerHTML=data.forecastDaily[4].forecastHourly[9].gap;
             document.getElementById("li74").innerHTML=data.forecastDaily[4].forecastHourly[9].tmp+"°";
            document.getElementById("li75").innerHTML=data.forecastDaily[4].forecastHourly[9].hum+"%";
            document.getElementById("li76").innerHTML=data.forecastDaily[4].forecastHourly[9].pres+"hpa";
            document.getElementById("li77").innerHTML=data.forecastDaily[4].forecastHourly[9].pop+"%";
            document.getElementById("li78").innerHTML=data.forecastDaily[4].forecastHourly[9].windDir;
            document.getElementById("li79").innerHTML=data.forecastDaily[4].forecastHourly[9].windSpd+"km/h";
            document.getElementById("li80").innerHTML=data.forecastDaily[4].forecastHourly[9].windSc;

            document.getElementById("li81").innerHTML=data.forecastDaily[4].forecastHourly[10].gap;
             document.getElementById("li82").innerHTML=data.forecastDaily[4].forecastHourly[10].tmp+"°";
            document.getElementById("li83").innerHTML=data.forecastDaily[4].forecastHourly[10].hum+"%";
            document.getElementById("li84").innerHTML=data.forecastDaily[4].forecastHourly[10].pres+"hpa";
            document.getElementById("li85").innerHTML=data.forecastDaily[4].forecastHourly[10].pop+"%";
            document.getElementById("li86").innerHTML=data.forecastDaily[4].forecastHourly[10].windDir;
            document.getElementById("li87").innerHTML=data.forecastDaily[4].forecastHourly[10].windSpd+"km/h";
            document.getElementById("li88").innerHTML=data.forecastDaily[4].forecastHourly[10].windSc;

            document.getElementById("li89").innerHTML=data.forecastDaily[4].forecastHourly[11].gap;
             document.getElementById("li90").innerHTML=data.forecastDaily[4].forecastHourly[11].tmp+"°";
            document.getElementById("li91").innerHTML=data.forecastDaily[4].forecastHourly[11].hum+"%";
            document.getElementById("li92").innerHTML=data.forecastDaily[4].forecastHourly[11].pres+"hpa";
            document.getElementById("li93").innerHTML=data.forecastDaily[4].forecastHourly[11].pop+"%";
            document.getElementById("li94").innerHTML=data.forecastDaily[4].forecastHourly[11].windDir;
            document.getElementById("li95").innerHTML=data.forecastDaily[4].forecastHourly[11].windSpd+"km/h";
            document.getElementById("li96").innerHTML=data.forecastDaily[4].forecastHourly[11].windSc;

            document.getElementById("li97").innerHTML=data.forecastDaily[4].forecastHourly[12].gap;
             document.getElementById("li98").innerHTML=data.forecastDaily[4].forecastHourly[12].tmp+"°";
            document.getElementById("li99").innerHTML=data.forecastDaily[4].forecastHourly[12].hum+"%";
            document.getElementById("li100").innerHTML=data.forecastDaily[4].forecastHourly[12].pres+"hpa";
            document.getElementById("li101").innerHTML=data.forecastDaily[4].forecastHourly[12].pop+"%";
            document.getElementById("li102").innerHTML=data.forecastDaily[4].forecastHourly[12].windDir;
            document.getElementById("li103").innerHTML=data.forecastDaily[4].forecastHourly[12].windSpd+"km/h";
            document.getElementById("li104").innerHTML=data.forecastDaily[4].forecastHourly[12].windSc;

            document.getElementById("li105").innerHTML=data.forecastDaily[4].forecastHourly[13].gap;
             document.getElementById("li106").innerHTML=data.forecastDaily[4].forecastHourly[13].tmp+"°";
            document.getElementById("li107").innerHTML=data.forecastDaily[4].forecastHourly[13].hum+"%";
            document.getElementById("li108").innerHTML=data.forecastDaily[4].forecastHourly[13].pres+"hpa";
            document.getElementById("li109").innerHTML=data.forecastDaily[4].forecastHourly[13].pop+"%";
            document.getElementById("li110").innerHTML=data.forecastDaily[4].forecastHourly[13].windDir;
            document.getElementById("li111").innerHTML=data.forecastDaily[4].forecastHourly[13].windSpd+"km/h";
            document.getElementById("li112").innerHTML=data.forecastDaily[4].forecastHourly[13].windSc;

            document.getElementById("li113").innerHTML=data.forecastDaily[4].forecastHourly[14].gap;
             document.getElementById("li114").innerHTML=data.forecastDaily[4].forecastHourly[14].tmp+"°";
            document.getElementById("li115").innerHTML=data.forecastDaily[4].forecastHourly[14].hum+"%";
            document.getElementById("li116").innerHTML=data.forecastDaily[4].forecastHourly[14].pres+"hpa";
            document.getElementById("li117").innerHTML=data.forecastDaily[4].forecastHourly[14].pop+"%";
            document.getElementById("li118").innerHTML=data.forecastDaily[4].forecastHourly[14].windDir;
            document.getElementById("li119").innerHTML=data.forecastDaily[4].forecastHourly[14].windSpd+"km/h";
            document.getElementById("li120").innerHTML=data.forecastDaily[4].forecastHourly[14].windSc;

            document.getElementById("li121").innerHTML=data.forecastDaily[4].forecastHourly[15].gap;
             document.getElementById("li122").innerHTML=data.forecastDaily[4].forecastHourly[15].tmp+"°";
            document.getElementById("li123").innerHTML=data.forecastDaily[4].forecastHourly[15].hum+"%";
            document.getElementById("li124").innerHTML=data.forecastDaily[4].forecastHourly[15].pres+"hpa";
            document.getElementById("li125").innerHTML=data.forecastDaily[4].forecastHourly[15].pop+"%";
            document.getElementById("li126").innerHTML=data.forecastDaily[4].forecastHourly[15].windDir;
            document.getElementById("li127").innerHTML=data.forecastDaily[4].forecastHourly[15].windSpd+"km/h";
            document.getElementById("li128").innerHTML=data.forecastDaily[4].forecastHourly[15].windSc;

            document.getElementById("li129").innerHTML=data.forecastDaily[4].forecastHourly[16].gap;
             document.getElementById("li130").innerHTML=data.forecastDaily[4].forecastHourly[16].tmp+"°";
            document.getElementById("li131").innerHTML=data.forecastDaily[4].forecastHourly[16].hum+"%";
            document.getElementById("li132").innerHTML=data.forecastDaily[4].forecastHourly[16].pres+"hpa";
            document.getElementById("li133").innerHTML=data.forecastDaily[4].forecastHourly[16].pop+"%";
            document.getElementById("li134").innerHTML=data.forecastDaily[4].forecastHourly[16].windDir;
            document.getElementById("li135").innerHTML=data.forecastDaily[4].forecastHourly[16].windSpd+"km/h";
            document.getElementById("li136").innerHTML=data.forecastDaily[4].forecastHourly[16].windSc;

            document.getElementById("li137").innerHTML=data.forecastDaily[4].forecastHourly[17].gap;
             document.getElementById("li138").innerHTML=data.forecastDaily[4].forecastHourly[17].tmp+"°";
            document.getElementById("li139").innerHTML=data.forecastDaily[4].forecastHourly[17].hum+"%";
            document.getElementById("li140").innerHTML=data.forecastDaily[4].forecastHourly[17].pres+"hpa";
            document.getElementById("li141").innerHTML=data.forecastDaily[4].forecastHourly[17].pop+"%";
            document.getElementById("li142").innerHTML=data.forecastDaily[4].forecastHourly[17].windDir;
            document.getElementById("li143").innerHTML=data.forecastDaily[4].forecastHourly[17].windSpd+"km/h";
            document.getElementById("li144").innerHTML=data.forecastDaily[4].forecastHourly[17].windSc;

            document.getElementById("li145").innerHTML=data.forecastDaily[4].forecastHourly[18].gap;
             document.getElementById("li146").innerHTML=data.forecastDaily[4].forecastHourly[18].tmp+"°";
            document.getElementById("li147").innerHTML=data.forecastDaily[4].forecastHourly[18].hum+"%";
            document.getElementById("li148").innerHTML=data.forecastDaily[4].forecastHourly[18].pres+"hpa";
            document.getElementById("li149").innerHTML=data.forecastDaily[4].forecastHourly[18].pop+"%";
            document.getElementById("li150").innerHTML=data.forecastDaily[4].forecastHourly[18].windDir;
            document.getElementById("li151").innerHTML=data.forecastDaily[4].forecastHourly[18].windSpd+"km/h";
            document.getElementById("li152").innerHTML=data.forecastDaily[4].forecastHourly[18].windSc;

            document.getElementById("li153").innerHTML=data.forecastDaily[4].forecastHourly[19].gap;
             document.getElementById("li154").innerHTML=data.forecastDaily[4].forecastHourly[19].tmp+"°";
            document.getElementById("li155").innerHTML=data.forecastDaily[4].forecastHourly[19].hum+"%";
            document.getElementById("li156").innerHTML=data.forecastDaily[4].forecastHourly[19].pres+"hpa";
            document.getElementById("li157").innerHTML=data.forecastDaily[4].forecastHourly[19].pop+"%";
            document.getElementById("li158").innerHTML=data.forecastDaily[4].forecastHourly[19].windDir;
            document.getElementById("li159").innerHTML=data.forecastDaily[4].forecastHourly[19].windSpd+"km/h";
            document.getElementById("li160").innerHTML=data.forecastDaily[4].forecastHourly[19].windSc;

            document.getElementById("li161").innerHTML=data.forecastDaily[4].forecastHourly[20].gap;
             document.getElementById("li162").innerHTML=data.forecastDaily[4].forecastHourly[20].tmp+"°";
            document.getElementById("li163").innerHTML=data.forecastDaily[4].forecastHourly[20].hum+"%";
            document.getElementById("li164").innerHTML=data.forecastDaily[4].forecastHourly[20].pres+"hpa";
            document.getElementById("li165").innerHTML=data.forecastDaily[4].forecastHourly[20].pop+"%";
            document.getElementById("li166").innerHTML=data.forecastDaily[4].forecastHourly[20].windDir;
            document.getElementById("li167").innerHTML=data.forecastDaily[4].forecastHourly[20].windSpd+"km/h";
            document.getElementById("li168").innerHTML=data.forecastDaily[4].forecastHourly[20].windSc;

            document.getElementById("li169").innerHTML=data.forecastDaily[4].forecastHourly[21].gap;
             document.getElementById("li170").innerHTML=data.forecastDaily[4].forecastHourly[21].tmp+"°";
            document.getElementById("li171").innerHTML=data.forecastDaily[4].forecastHourly[21].hum+"%";
            document.getElementById("li172").innerHTML=data.forecastDaily[4].forecastHourly[21].pres+"hpa";
            document.getElementById("li173").innerHTML=data.forecastDaily[4].forecastHourly[21].pop+"%";
            document.getElementById("li174").innerHTML=data.forecastDaily[4].forecastHourly[21].windDir;
            document.getElementById("li175").innerHTML=data.forecastDaily[4].forecastHourly[21].windSpd+"km/h";
            document.getElementById("li176").innerHTML=data.forecastDaily[4].forecastHourly[21].windSc;

            document.getElementById("li177").innerHTML=data.forecastDaily[4].forecastHourly[22].gap;
             document.getElementById("li178").innerHTML=data.forecastDaily[4].forecastHourly[22].tmp+"°";
            document.getElementById("li179").innerHTML=data.forecastDaily[4].forecastHourly[22].hum+"%";
            document.getElementById("li180").innerHTML=data.forecastDaily[4].forecastHourly[22].pres+"hpa";
            document.getElementById("li181").innerHTML=data.forecastDaily[4].forecastHourly[22].pop+"%";
            document.getElementById("li182").innerHTML=data.forecastDaily[4].forecastHourly[22].windDir;
            document.getElementById("li183").innerHTML=data.forecastDaily[4].forecastHourly[22].windSpd+"km/h";
            document.getElementById("li184").innerHTML=data.forecastDaily[4].forecastHourly[22].windSc;

            document.getElementById("li185").innerHTML=data.forecastDaily[4].forecastHourly[23].gap;
             document.getElementById("li186").innerHTML=data.forecastDaily[4].forecastHourly[23].tmp+"°";
            document.getElementById("li187").innerHTML=data.forecastDaily[4].forecastHourly[23].hum+"%";
            document.getElementById("li188").innerHTML=data.forecastDaily[4].forecastHourly[23].pres+"hpa";
            document.getElementById("li189").innerHTML=data.forecastDaily[4].forecastHourly[23].pop+"%";
            document.getElementById("li190").innerHTML=data.forecastDaily[4].forecastHourly[23].windDir;
            document.getElementById("li191").innerHTML=data.forecastDaily[4].forecastHourly[23].windSpd+"km/h";
            document.getElementById("li192").innerHTML=data.forecastDaily[4].forecastHourly[23].windSc;




            


            // var th=parseInt(myDate.getHours()),i=0,k=0,b=0;
          
            //   var ulli= document.getElementById("contain-table").getElementsByTagName('ul');
            // var c=ulli[i].getElementsByTagName("li");
            // [0].innerHTML=data.forecastDaily[k].forecastHourly[i].gap;}
            }
          else {
            alert("发生错误：" + request.status);
         }
      } 
   }

       document.getElementById('four').style.color="#72cff1";
       document.getElementById('five').style.color="black";
       document.getElementById('six').style.color="black";
       document.getElementById('seven').style.color="black";
       document.getElementById('one').style.color="black";
       document.getElementById('two').style.color="black";
       document.getElementById('three').style.color="black";
         document.getElementById('pic').style.position="relative";
       document.getElementById('pic').style.left="8.8rem";
        break;

         case "five"&&"p6":
         init();
var request = new XMLHttpRequest();
   request.open("GET", "http://dev.lanbaoo.com/api/weather/forecast?lat=0&lng=0&city&cityId=CN101270101" ,true);
   request.send();
   request.onreadystatechange = function() {
      if (request.readyState===4) {
         if (request.status===200) { 
            var data = JSON.parse(request.responseText);
            // if (data.id) { 
            //  alert(data.city);
               
               
            // } else {
            //     alert("出现错误：") ;
            // }
            document.getElementById("zt2").innerHTML=data.forecastDaily[5].phaseName;
            document.getElementById("zt3").innerHTML=data.forecastDaily[5].tideName;
            document.getElementById("pt1").innerHTML=data.forecastDaily[5].presTime.split(",")[0];
            document.getElementById("pt3").innerHTML=data.forecastDaily[5].presTime.split(",")[1];
            document.getElementById("pt5").innerHTML=data.forecastDaily[5].presTime.split(",")[2];
            document.getElementById("pt7").innerHTML=data.forecastDaily[5].presTime.split(",")[3];
            document.getElementById("pt2").innerHTML=data.forecastDaily[5].presValue.split(",")[0];
            document.getElementById("pt4").innerHTML=data.forecastDaily[5].presValue.split(",")[1];
            document.getElementById("pt6").innerHTML=data.forecastDaily[5].presValue.split(",")[2];
            document.getElementById("pt8").innerHTML=data.forecastDaily[5].presValue.split(",")[3];
             document.getElementById("cl1").innerHTML=data.forecastDaily[5].sunrise.split(":")[0]+":"+data.forecastDaily[5].sunrise.split(":")[1];
            document.getElementById("cl2").innerHTML=data.forecastDaily[5].sunset.split(":")[0]+":"+data.forecastDaily[5].sunset.split(":")[1];
            document.getElementById("li1").innerHTML=data.forecastDaily[5].forecastHourly[0].gap;
             document.getElementById("li2").innerHTML=data.forecastDaily[5].forecastHourly[0].tmp+"°";
            document.getElementById("li3").innerHTML=data.forecastDaily[5].forecastHourly[0].hum+"%";
            document.getElementById("li4").innerHTML=data.forecastDaily[5].forecastHourly[0].pres+"hpa";
            document.getElementById("li5").innerHTML=data.forecastDaily[5].forecastHourly[0].pop+"%";
            document.getElementById("li6").innerHTML=data.forecastDaily[5].forecastHourly[0].windDir;
            document.getElementById("li7").innerHTML=data.forecastDaily[5].forecastHourly[0].windSpd+"km/h";
            document.getElementById("li8").innerHTML=data.forecastDaily[5].forecastHourly[0].windSc;

            document.getElementById("li9").innerHTML=data.forecastDaily[5].forecastHourly[1].gap;
             document.getElementById("li10").innerHTML=data.forecastDaily[5].forecastHourly[1].tmp+"°";
            document.getElementById("li11").innerHTML=data.forecastDaily[5].forecastHourly[1].hum+"%";
            document.getElementById("li12").innerHTML=data.forecastDaily[5].forecastHourly[1].pres+"hpa";
            document.getElementById("li13").innerHTML=data.forecastDaily[5].forecastHourly[1].pop+"%";
            document.getElementById("li14").innerHTML=data.forecastDaily[5].forecastHourly[1].windDir;
            document.getElementById("li15").innerHTML=data.forecastDaily[5].forecastHourly[1].windSpd+"km/h";
            document.getElementById("li16").innerHTML=data.forecastDaily[5].forecastHourly[1].windSc;

            document.getElementById("li17").innerHTML=data.forecastDaily[5].forecastHourly[2].gap;
             document.getElementById("li18").innerHTML=data.forecastDaily[5].forecastHourly[2].tmp+"°";
            document.getElementById("li19").innerHTML=data.forecastDaily[5].forecastHourly[2].hum+"%";
            document.getElementById("li20").innerHTML=data.forecastDaily[5].forecastHourly[2].pres+"hpa";
            document.getElementById("li21").innerHTML=data.forecastDaily[5].forecastHourly[2].pop+"%";
            document.getElementById("li22").innerHTML=data.forecastDaily[5].forecastHourly[2].windDir;
            document.getElementById("li23").innerHTML=data.forecastDaily[5].forecastHourly[2].windSpd+"km/h";
            document.getElementById("li24").innerHTML=data.forecastDaily[5].forecastHourly[2].windSc;

            document.getElementById("li25").innerHTML=data.forecastDaily[5].forecastHourly[3].gap;
             document.getElementById("li26").innerHTML=data.forecastDaily[5].forecastHourly[3].tmp+"°";
            document.getElementById("li27").innerHTML=data.forecastDaily[5].forecastHourly[3].hum+"%";
            document.getElementById("li28").innerHTML=data.forecastDaily[5].forecastHourly[3].pres+"hpa";
            document.getElementById("li29").innerHTML=data.forecastDaily[5].forecastHourly[3].pop+"%";
            document.getElementById("li30").innerHTML=data.forecastDaily[5].forecastHourly[3].windDir;
            document.getElementById("li31").innerHTML=data.forecastDaily[5].forecastHourly[3].windSpd+"km/h";
            document.getElementById("li32").innerHTML=data.forecastDaily[5].forecastHourly[3].windSc;

            document.getElementById("li33").innerHTML=data.forecastDaily[5].forecastHourly[4].gap;
             document.getElementById("li34").innerHTML=data.forecastDaily[5].forecastHourly[4].tmp+"°";
            document.getElementById("li35").innerHTML=data.forecastDaily[5].forecastHourly[4].hum+"%";
            document.getElementById("li36").innerHTML=data.forecastDaily[5].forecastHourly[4].pres+"hpa";
            document.getElementById("li37").innerHTML=data.forecastDaily[5].forecastHourly[4].pop+"%";
            document.getElementById("li38").innerHTML=data.forecastDaily[5].forecastHourly[4].windDir;
            document.getElementById("li39").innerHTML=data.forecastDaily[5].forecastHourly[4].windSpd+"km/h";
            document.getElementById("li40").innerHTML=data.forecastDaily[5].forecastHourly[4].windSc;

            document.getElementById("li41").innerHTML=data.forecastDaily[5].forecastHourly[5].gap;
             document.getElementById("li42").innerHTML=data.forecastDaily[5].forecastHourly[5].tmp+"°";
            document.getElementById("li43").innerHTML=data.forecastDaily[5].forecastHourly[5].hum+"%";
            document.getElementById("li44").innerHTML=data.forecastDaily[5].forecastHourly[5].pres+"hpa";
            document.getElementById("li45").innerHTML=data.forecastDaily[5].forecastHourly[5].pop+"%";
            document.getElementById("li46").innerHTML=data.forecastDaily[5].forecastHourly[5].windDir;
            document.getElementById("li47").innerHTML=data.forecastDaily[5].forecastHourly[5].windSpd+"km/h";
            document.getElementById("li48").innerHTML=data.forecastDaily[5].forecastHourly[5].windSc;

            document.getElementById("li49").innerHTML=data.forecastDaily[5].forecastHourly[6].gap;
             document.getElementById("li50").innerHTML=data.forecastDaily[5].forecastHourly[6].tmp+"°";
            document.getElementById("li51").innerHTML=data.forecastDaily[5].forecastHourly[6].hum+"%";
            document.getElementById("li52").innerHTML=data.forecastDaily[5].forecastHourly[6].pres+"hpa";
            document.getElementById("li53").innerHTML=data.forecastDaily[5].forecastHourly[6].pop+"%";
            document.getElementById("li54").innerHTML=data.forecastDaily[5].forecastHourly[6].windDir;
            document.getElementById("li55").innerHTML=data.forecastDaily[5].forecastHourly[6].windSpd+"km/h";
            document.getElementById("li56").innerHTML=data.forecastDaily[5].forecastHourly[6].windSc;

            document.getElementById("li57").innerHTML=data.forecastDaily[5].forecastHourly[7].gap;
             document.getElementById("li58").innerHTML=data.forecastDaily[5].forecastHourly[7].tmp+"°";
            document.getElementById("li59").innerHTML=data.forecastDaily[5].forecastHourly[7].hum+"%";
            document.getElementById("li60").innerHTML=data.forecastDaily[5].forecastHourly[7].pres+"hpa";
            document.getElementById("li61").innerHTML=data.forecastDaily[5].forecastHourly[7].pop+"%";
            document.getElementById("li62").innerHTML=data.forecastDaily[5].forecastHourly[7].windDir;
            document.getElementById("li63").innerHTML=data.forecastDaily[5].forecastHourly[7].windSpd+"km/h";
            document.getElementById("li64").innerHTML=data.forecastDaily[5].forecastHourly[7].windSc;

            document.getElementById("li65").innerHTML=data.forecastDaily[5].forecastHourly[8].gap;
             document.getElementById("li66").innerHTML=data.forecastDaily[5].forecastHourly[8].tmp+"°";
            document.getElementById("li67").innerHTML=data.forecastDaily[5].forecastHourly[8].hum+"%";
            document.getElementById("li68").innerHTML=data.forecastDaily[5].forecastHourly[8].pres+"hpa";
            document.getElementById("li69").innerHTML=data.forecastDaily[5].forecastHourly[8].pop+"%";
            document.getElementById("li70").innerHTML=data.forecastDaily[5].forecastHourly[8].windDir;
            document.getElementById("li71").innerHTML=data.forecastDaily[5].forecastHourly[8].windSpd+"km/h";
            document.getElementById("li72").innerHTML=data.forecastDaily[5].forecastHourly[8].windSc;

            document.getElementById("li73").innerHTML=data.forecastDaily[5].forecastHourly[9].gap;
             document.getElementById("li74").innerHTML=data.forecastDaily[5].forecastHourly[9].tmp+"°";
            document.getElementById("li75").innerHTML=data.forecastDaily[5].forecastHourly[9].hum+"%";
            document.getElementById("li76").innerHTML=data.forecastDaily[5].forecastHourly[9].pres+"hpa";
            document.getElementById("li77").innerHTML=data.forecastDaily[5].forecastHourly[9].pop+"%";
            document.getElementById("li78").innerHTML=data.forecastDaily[5].forecastHourly[9].windDir;
            document.getElementById("li79").innerHTML=data.forecastDaily[5].forecastHourly[9].windSpd+"km/h";
            document.getElementById("li80").innerHTML=data.forecastDaily[5].forecastHourly[9].windSc;

            document.getElementById("li81").innerHTML=data.forecastDaily[5].forecastHourly[10].gap;
             document.getElementById("li82").innerHTML=data.forecastDaily[5].forecastHourly[10].tmp+"°";
            document.getElementById("li83").innerHTML=data.forecastDaily[5].forecastHourly[10].hum+"%";
            document.getElementById("li84").innerHTML=data.forecastDaily[5].forecastHourly[10].pres+"hpa";
            document.getElementById("li85").innerHTML=data.forecastDaily[5].forecastHourly[10].pop+"%";
            document.getElementById("li86").innerHTML=data.forecastDaily[5].forecastHourly[10].windDir;
            document.getElementById("li87").innerHTML=data.forecastDaily[5].forecastHourly[10].windSpd+"km/h";
            document.getElementById("li88").innerHTML=data.forecastDaily[5].forecastHourly[10].windSc;

            document.getElementById("li89").innerHTML=data.forecastDaily[5].forecastHourly[11].gap;
             document.getElementById("li90").innerHTML=data.forecastDaily[5].forecastHourly[11].tmp+"°";
            document.getElementById("li91").innerHTML=data.forecastDaily[5].forecastHourly[11].hum+"%";
            document.getElementById("li92").innerHTML=data.forecastDaily[5].forecastHourly[11].pres+"hpa";
            document.getElementById("li93").innerHTML=data.forecastDaily[5].forecastHourly[11].pop+"%";
            document.getElementById("li94").innerHTML=data.forecastDaily[5].forecastHourly[11].windDir;
            document.getElementById("li95").innerHTML=data.forecastDaily[5].forecastHourly[11].windSpd+"km/h";
            document.getElementById("li96").innerHTML=data.forecastDaily[5].forecastHourly[11].windSc;

            document.getElementById("li97").innerHTML=data.forecastDaily[5].forecastHourly[12].gap;
             document.getElementById("li98").innerHTML=data.forecastDaily[5].forecastHourly[12].tmp+"°";
            document.getElementById("li99").innerHTML=data.forecastDaily[5].forecastHourly[12].hum+"%";
            document.getElementById("li100").innerHTML=data.forecastDaily[5].forecastHourly[12].pres+"hpa";
            document.getElementById("li101").innerHTML=data.forecastDaily[5].forecastHourly[12].pop+"%";
            document.getElementById("li102").innerHTML=data.forecastDaily[5].forecastHourly[12].windDir;
            document.getElementById("li103").innerHTML=data.forecastDaily[5].forecastHourly[12].windSpd+"km/h";
            document.getElementById("li104").innerHTML=data.forecastDaily[5].forecastHourly[12].windSc;

            document.getElementById("li105").innerHTML=data.forecastDaily[5].forecastHourly[13].gap;
             document.getElementById("li106").innerHTML=data.forecastDaily[5].forecastHourly[13].tmp+"°";
            document.getElementById("li107").innerHTML=data.forecastDaily[5].forecastHourly[13].hum+"%";
            document.getElementById("li108").innerHTML=data.forecastDaily[5].forecastHourly[13].pres+"hpa";
            document.getElementById("li109").innerHTML=data.forecastDaily[5].forecastHourly[13].pop+"%";
            document.getElementById("li110").innerHTML=data.forecastDaily[5].forecastHourly[13].windDir;
            document.getElementById("li111").innerHTML=data.forecastDaily[5].forecastHourly[13].windSpd+"km/h";
            document.getElementById("li112").innerHTML=data.forecastDaily[5].forecastHourly[13].windSc;

            document.getElementById("li113").innerHTML=data.forecastDaily[5].forecastHourly[14].gap;
             document.getElementById("li114").innerHTML=data.forecastDaily[5].forecastHourly[14].tmp+"°";
            document.getElementById("li115").innerHTML=data.forecastDaily[5].forecastHourly[14].hum+"%";
            document.getElementById("li116").innerHTML=data.forecastDaily[5].forecastHourly[14].pres+"hpa";
            document.getElementById("li117").innerHTML=data.forecastDaily[5].forecastHourly[14].pop+"%";
            document.getElementById("li118").innerHTML=data.forecastDaily[5].forecastHourly[14].windDir;
            document.getElementById("li119").innerHTML=data.forecastDaily[5].forecastHourly[14].windSpd+"km/h";
            document.getElementById("li120").innerHTML=data.forecastDaily[5].forecastHourly[14].windSc;

            document.getElementById("li121").innerHTML=data.forecastDaily[5].forecastHourly[15].gap;
             document.getElementById("li122").innerHTML=data.forecastDaily[5].forecastHourly[15].tmp+"°";
            document.getElementById("li123").innerHTML=data.forecastDaily[5].forecastHourly[15].hum+"%";
            document.getElementById("li124").innerHTML=data.forecastDaily[5].forecastHourly[15].pres+"hpa";
            document.getElementById("li125").innerHTML=data.forecastDaily[5].forecastHourly[15].pop+"%";
            document.getElementById("li126").innerHTML=data.forecastDaily[5].forecastHourly[15].windDir;
            document.getElementById("li127").innerHTML=data.forecastDaily[5].forecastHourly[15].windSpd+"km/h";
            document.getElementById("li128").innerHTML=data.forecastDaily[5].forecastHourly[15].windSc;

            document.getElementById("li129").innerHTML=data.forecastDaily[5].forecastHourly[16].gap;
             document.getElementById("li130").innerHTML=data.forecastDaily[5].forecastHourly[16].tmp+"°";
            document.getElementById("li131").innerHTML=data.forecastDaily[5].forecastHourly[16].hum+"%";
            document.getElementById("li132").innerHTML=data.forecastDaily[5].forecastHourly[16].pres+"hpa";
            document.getElementById("li133").innerHTML=data.forecastDaily[5].forecastHourly[16].pop+"%";
            document.getElementById("li134").innerHTML=data.forecastDaily[5].forecastHourly[16].windDir;
            document.getElementById("li135").innerHTML=data.forecastDaily[5].forecastHourly[16].windSpd+"km/h";
            document.getElementById("li136").innerHTML=data.forecastDaily[5].forecastHourly[16].windSc;

            document.getElementById("li137").innerHTML=data.forecastDaily[5].forecastHourly[17].gap;
             document.getElementById("li138").innerHTML=data.forecastDaily[5].forecastHourly[17].tmp+"°";
            document.getElementById("li139").innerHTML=data.forecastDaily[5].forecastHourly[17].hum+"%";
            document.getElementById("li140").innerHTML=data.forecastDaily[5].forecastHourly[17].pres+"hpa";
            document.getElementById("li141").innerHTML=data.forecastDaily[5].forecastHourly[17].pop+"%";
            document.getElementById("li142").innerHTML=data.forecastDaily[5].forecastHourly[17].windDir;
            document.getElementById("li143").innerHTML=data.forecastDaily[5].forecastHourly[17].windSpd+"km/h";
            document.getElementById("li144").innerHTML=data.forecastDaily[5].forecastHourly[17].windSc;

            document.getElementById("li145").innerHTML=data.forecastDaily[5].forecastHourly[18].gap;
             document.getElementById("li146").innerHTML=data.forecastDaily[5].forecastHourly[18].tmp+"°";
            document.getElementById("li147").innerHTML=data.forecastDaily[5].forecastHourly[18].hum+"%";
            document.getElementById("li148").innerHTML=data.forecastDaily[5].forecastHourly[18].pres+"hpa";
            document.getElementById("li149").innerHTML=data.forecastDaily[5].forecastHourly[18].pop+"%";
            document.getElementById("li150").innerHTML=data.forecastDaily[5].forecastHourly[18].windDir;
            document.getElementById("li151").innerHTML=data.forecastDaily[5].forecastHourly[18].windSpd+"km/h";
            document.getElementById("li152").innerHTML=data.forecastDaily[5].forecastHourly[18].windSc;

            document.getElementById("li153").innerHTML=data.forecastDaily[5].forecastHourly[19].gap;
             document.getElementById("li154").innerHTML=data.forecastDaily[5].forecastHourly[19].tmp+"°";
            document.getElementById("li155").innerHTML=data.forecastDaily[5].forecastHourly[19].hum+"%";
            document.getElementById("li156").innerHTML=data.forecastDaily[5].forecastHourly[19].pres+"hpa";
            document.getElementById("li157").innerHTML=data.forecastDaily[5].forecastHourly[19].pop+"%";
            document.getElementById("li158").innerHTML=data.forecastDaily[5].forecastHourly[19].windDir;
            document.getElementById("li159").innerHTML=data.forecastDaily[5].forecastHourly[19].windSpd+"km/h";
            document.getElementById("li160").innerHTML=data.forecastDaily[5].forecastHourly[19].windSc;

            document.getElementById("li161").innerHTML=data.forecastDaily[5].forecastHourly[20].gap;
             document.getElementById("li162").innerHTML=data.forecastDaily[5].forecastHourly[20].tmp+"°";
            document.getElementById("li163").innerHTML=data.forecastDaily[5].forecastHourly[20].hum+"%";
            document.getElementById("li164").innerHTML=data.forecastDaily[5].forecastHourly[20].pres+"hpa";
            document.getElementById("li165").innerHTML=data.forecastDaily[5].forecastHourly[20].pop+"%";
            document.getElementById("li166").innerHTML=data.forecastDaily[5].forecastHourly[20].windDir;
            document.getElementById("li167").innerHTML=data.forecastDaily[5].forecastHourly[20].windSpd+"km/h";
            document.getElementById("li168").innerHTML=data.forecastDaily[5].forecastHourly[20].windSc;

            document.getElementById("li169").innerHTML=data.forecastDaily[5].forecastHourly[21].gap;
             document.getElementById("li170").innerHTML=data.forecastDaily[5].forecastHourly[21].tmp+"°";
            document.getElementById("li171").innerHTML=data.forecastDaily[5].forecastHourly[21].hum+"%";
            document.getElementById("li172").innerHTML=data.forecastDaily[5].forecastHourly[21].pres+"hpa";
            document.getElementById("li173").innerHTML=data.forecastDaily[5].forecastHourly[21].pop+"%";
            document.getElementById("li174").innerHTML=data.forecastDaily[5].forecastHourly[21].windDir;
            document.getElementById("li175").innerHTML=data.forecastDaily[5].forecastHourly[21].windSpd+"km/h";
            document.getElementById("li176").innerHTML=data.forecastDaily[5].forecastHourly[21].windSc;

            document.getElementById("li177").innerHTML=data.forecastDaily[5].forecastHourly[22].gap;
             document.getElementById("li178").innerHTML=data.forecastDaily[5].forecastHourly[22].tmp+"°";
            document.getElementById("li179").innerHTML=data.forecastDaily[5].forecastHourly[22].hum+"%";
            document.getElementById("li180").innerHTML=data.forecastDaily[5].forecastHourly[22].pres+"hpa";
            document.getElementById("li181").innerHTML=data.forecastDaily[5].forecastHourly[22].pop+"%";
            document.getElementById("li182").innerHTML=data.forecastDaily[5].forecastHourly[22].windDir;
            document.getElementById("li183").innerHTML=data.forecastDaily[5].forecastHourly[22].windSpd+"km/h";
            document.getElementById("li184").innerHTML=data.forecastDaily[5].forecastHourly[22].windSc;

            document.getElementById("li185").innerHTML=data.forecastDaily[5].forecastHourly[23].gap;
             document.getElementById("li186").innerHTML=data.forecastDaily[5].forecastHourly[23].tmp+"°";
            document.getElementById("li187").innerHTML=data.forecastDaily[5].forecastHourly[23].hum+"%";
            document.getElementById("li188").innerHTML=data.forecastDaily[5].forecastHourly[23].pres+"hpa";
            document.getElementById("li189").innerHTML=data.forecastDaily[5].forecastHourly[23].pop+"%";
            document.getElementById("li190").innerHTML=data.forecastDaily[5].forecastHourly[23].windDir;
            document.getElementById("li191").innerHTML=data.forecastDaily[5].forecastHourly[23].windSpd+"km/h";
            document.getElementById("li192").innerHTML=data.forecastDaily[5].forecastHourly[23].windSc;




            


            // var th=parseInt(myDate.getHours()),i=0,k=0,b=0;
          
            //   var ulli= document.getElementById("contain-table").getElementsByTagName('ul');
            // var c=ulli[i].getElementsByTagName("li");
            // [0].innerHTML=data.forecastDaily[k].forecastHourly[i].gap;}
            }
          else {
            alert("发生错误：" + request.status);
         }
      } 
   }

     document.getElementById('pic').style.position="relative";
       document.getElementById('five').style.color="#72cff1";
       document.getElementById('six').style.color="black";
       document.getElementById('seven').style.color="black";
       document.getElementById('one').style.color="black";
       document.getElementById('two').style.color="black";
       document.getElementById('three').style.color="black";
       document.getElementById('four').style.color="black";
       document.getElementById('pic').style.left="11rem";
        break;

         case "six"&&"p7":var request = new XMLHttpRequest();
         init();
   request.open("GET", "http://dev.lanbaoo.com/api/weather/forecast?lat=0&lng=0&city&cityId=CN101270101" ,true);
   request.send();
   request.onreadystatechange = function() {
      if (request.readyState===4) {
         if (request.status===200) { 
            var data = JSON.parse(request.responseText);
            // if (data.id) { 
            //  alert(data.city);
               
               
            // } else {
            //     alert("出现错误：") ;
            // }
            document.getElementById("zt2").innerHTML=data.forecastDaily[3].phaseName;
            document.getElementById("zt3").innerHTML=data.forecastDaily[3].tideName;
            document.getElementById("pt1").innerHTML=data.forecastDaily[3].presTime.split(",")[0];
            document.getElementById("pt3").innerHTML=data.forecastDaily[3].presTime.split(",")[1];
            document.getElementById("pt5").innerHTML=data.forecastDaily[3].presTime.split(",")[2];
            document.getElementById("pt7").innerHTML=data.forecastDaily[3].presTime.split(",")[3];
            document.getElementById("pt2").innerHTML=data.forecastDaily[3].presValue.split(",")[0];
            document.getElementById("pt4").innerHTML=data.forecastDaily[3].presValue.split(",")[1];
            document.getElementById("pt6").innerHTML=data.forecastDaily[3].presValue.split(",")[2];
            document.getElementById("pt8").innerHTML=data.forecastDaily[3].presValue.split(",")[3];
             document.getElementById("cl1").innerHTML=data.forecastDaily[5].sunrise.split(":")[0]+":"+data.forecastDaily[5].sunrise.split(":")[1];
            document.getElementById("cl2").innerHTML=data.forecastDaily[5].sunset.split(":")[0]+":"+data.forecastDaily[5].sunset.split(":")[1];
            document.getElementById("li1").innerHTML=data.forecastDaily[3].forecastHourly[0].gap;
             document.getElementById("li2").innerHTML=data.forecastDaily[3].forecastHourly[0].tmp+"°";
            document.getElementById("li3").innerHTML=data.forecastDaily[3].forecastHourly[0].hum+"%";
            document.getElementById("li4").innerHTML=data.forecastDaily[3].forecastHourly[0].pres+"hpa";
            document.getElementById("li5").innerHTML=data.forecastDaily[3].forecastHourly[0].pop+"%";
            document.getElementById("li6").innerHTML=data.forecastDaily[3].forecastHourly[0].windDir;
            document.getElementById("li7").innerHTML=data.forecastDaily[3].forecastHourly[0].windSpd+"km/h";
            document.getElementById("li8").innerHTML=data.forecastDaily[3].forecastHourly[0].windSc;

            document.getElementById("li9").innerHTML=data.forecastDaily[3].forecastHourly[1].gap;
             document.getElementById("li10").innerHTML=data.forecastDaily[3].forecastHourly[1].tmp+"°";
            document.getElementById("li11").innerHTML=data.forecastDaily[3].forecastHourly[1].hum+"%";
            document.getElementById("li12").innerHTML=data.forecastDaily[3].forecastHourly[1].pres+"hpa";
            document.getElementById("li13").innerHTML=data.forecastDaily[3].forecastHourly[1].pop+"%";
            document.getElementById("li14").innerHTML=data.forecastDaily[3].forecastHourly[1].windDir;
            document.getElementById("li15").innerHTML=data.forecastDaily[3].forecastHourly[1].windSpd+"km/h";
            document.getElementById("li16").innerHTML=data.forecastDaily[3].forecastHourly[1].windSc;

            document.getElementById("li17").innerHTML=data.forecastDaily[3].forecastHourly[2].gap;
             document.getElementById("li18").innerHTML=data.forecastDaily[3].forecastHourly[2].tmp+"°";
            document.getElementById("li19").innerHTML=data.forecastDaily[3].forecastHourly[2].hum+"%";
            document.getElementById("li20").innerHTML=data.forecastDaily[3].forecastHourly[2].pres+"hpa";
            document.getElementById("li21").innerHTML=data.forecastDaily[3].forecastHourly[2].pop+"%";
            document.getElementById("li22").innerHTML=data.forecastDaily[3].forecastHourly[2].windDir;
            document.getElementById("li23").innerHTML=data.forecastDaily[3].forecastHourly[2].windSpd+"km/h";
            document.getElementById("li24").innerHTML=data.forecastDaily[3].forecastHourly[2].windSc;

            document.getElementById("li25").innerHTML=data.forecastDaily[3].forecastHourly[3].gap;
             document.getElementById("li26").innerHTML=data.forecastDaily[3].forecastHourly[3].tmp+"°";
            document.getElementById("li27").innerHTML=data.forecastDaily[3].forecastHourly[3].hum+"%";
            document.getElementById("li28").innerHTML=data.forecastDaily[3].forecastHourly[3].pres+"hpa";
            document.getElementById("li29").innerHTML=data.forecastDaily[3].forecastHourly[3].pop+"%";
            document.getElementById("li30").innerHTML=data.forecastDaily[3].forecastHourly[3].windDir;
            document.getElementById("li31").innerHTML=data.forecastDaily[3].forecastHourly[3].windSpd+"km/h";
            document.getElementById("li32").innerHTML=data.forecastDaily[3].forecastHourly[3].windSc;

            document.getElementById("li33").innerHTML=data.forecastDaily[3].forecastHourly[4].gap;
             document.getElementById("li34").innerHTML=data.forecastDaily[3].forecastHourly[4].tmp+"°";
            document.getElementById("li35").innerHTML=data.forecastDaily[3].forecastHourly[4].hum+"%";
            document.getElementById("li36").innerHTML=data.forecastDaily[3].forecastHourly[4].pres+"hpa";
            document.getElementById("li37").innerHTML=data.forecastDaily[3].forecastHourly[4].pop+"%";
            document.getElementById("li38").innerHTML=data.forecastDaily[3].forecastHourly[4].windDir;
            document.getElementById("li39").innerHTML=data.forecastDaily[3].forecastHourly[4].windSpd+"km/h";
            document.getElementById("li40").innerHTML=data.forecastDaily[3].forecastHourly[4].windSc;

            document.getElementById("li41").innerHTML=data.forecastDaily[3].forecastHourly[5].gap;
             document.getElementById("li42").innerHTML=data.forecastDaily[3].forecastHourly[5].tmp+"°";
            document.getElementById("li43").innerHTML=data.forecastDaily[3].forecastHourly[5].hum+"%";
            document.getElementById("li44").innerHTML=data.forecastDaily[3].forecastHourly[5].pres+"hpa";
            document.getElementById("li45").innerHTML=data.forecastDaily[3].forecastHourly[5].pop+"%";
            document.getElementById("li46").innerHTML=data.forecastDaily[3].forecastHourly[5].windDir;
            document.getElementById("li47").innerHTML=data.forecastDaily[3].forecastHourly[5].windSpd+"km/h";
            document.getElementById("li48").innerHTML=data.forecastDaily[3].forecastHourly[5].windSc;

            document.getElementById("li49").innerHTML=data.forecastDaily[3].forecastHourly[6].gap;
             document.getElementById("li50").innerHTML=data.forecastDaily[3].forecastHourly[6].tmp+"°";
            document.getElementById("li51").innerHTML=data.forecastDaily[3].forecastHourly[6].hum+"%";
            document.getElementById("li52").innerHTML=data.forecastDaily[3].forecastHourly[6].pres+"hpa";
            document.getElementById("li53").innerHTML=data.forecastDaily[3].forecastHourly[6].pop+"%";
            document.getElementById("li54").innerHTML=data.forecastDaily[3].forecastHourly[6].windDir;
            document.getElementById("li55").innerHTML=data.forecastDaily[3].forecastHourly[6].windSpd+"km/h";
            document.getElementById("li56").innerHTML=data.forecastDaily[3].forecastHourly[6].windSc;

            document.getElementById("li57").innerHTML=data.forecastDaily[3].forecastHourly[7].gap;
             document.getElementById("li58").innerHTML=data.forecastDaily[3].forecastHourly[7].tmp+"°";
            document.getElementById("li59").innerHTML=data.forecastDaily[3].forecastHourly[7].hum+"%";
            document.getElementById("li60").innerHTML=data.forecastDaily[3].forecastHourly[7].pres+"hpa";
            document.getElementById("li61").innerHTML=data.forecastDaily[3].forecastHourly[7].pop+"%";
            document.getElementById("li62").innerHTML=data.forecastDaily[3].forecastHourly[7].windDir;
            document.getElementById("li63").innerHTML=data.forecastDaily[3].forecastHourly[7].windSpd+"km/h";
            document.getElementById("li64").innerHTML=data.forecastDaily[3].forecastHourly[7].windSc;

            document.getElementById("li65").innerHTML=data.forecastDaily[3].forecastHourly[8].gap;
             document.getElementById("li66").innerHTML=data.forecastDaily[3].forecastHourly[8].tmp+"°";
            document.getElementById("li67").innerHTML=data.forecastDaily[3].forecastHourly[8].hum+"%";
            document.getElementById("li68").innerHTML=data.forecastDaily[3].forecastHourly[8].pres+"hpa";
            document.getElementById("li69").innerHTML=data.forecastDaily[3].forecastHourly[8].pop+"%";
            document.getElementById("li70").innerHTML=data.forecastDaily[3].forecastHourly[8].windDir;
            document.getElementById("li71").innerHTML=data.forecastDaily[3].forecastHourly[8].windSpd+"km/h";
            document.getElementById("li72").innerHTML=data.forecastDaily[3].forecastHourly[8].windSc;

            document.getElementById("li73").innerHTML=data.forecastDaily[3].forecastHourly[9].gap;
             document.getElementById("li74").innerHTML=data.forecastDaily[3].forecastHourly[9].tmp+"°";
            document.getElementById("li75").innerHTML=data.forecastDaily[3].forecastHourly[9].hum+"%";
            document.getElementById("li76").innerHTML=data.forecastDaily[3].forecastHourly[9].pres+"hpa";
            document.getElementById("li77").innerHTML=data.forecastDaily[3].forecastHourly[9].pop+"%";
            document.getElementById("li78").innerHTML=data.forecastDaily[3].forecastHourly[9].windDir;
            document.getElementById("li79").innerHTML=data.forecastDaily[3].forecastHourly[9].windSpd+"km/h";
            document.getElementById("li80").innerHTML=data.forecastDaily[3].forecastHourly[9].windSc;

            document.getElementById("li81").innerHTML=data.forecastDaily[3].forecastHourly[10].gap;
             document.getElementById("li82").innerHTML=data.forecastDaily[3].forecastHourly[10].tmp+"°";
            document.getElementById("li83").innerHTML=data.forecastDaily[3].forecastHourly[10].hum+"%";
            document.getElementById("li84").innerHTML=data.forecastDaily[3].forecastHourly[10].pres+"hpa";
            document.getElementById("li85").innerHTML=data.forecastDaily[3].forecastHourly[10].pop+"%";
            document.getElementById("li86").innerHTML=data.forecastDaily[3].forecastHourly[10].windDir;
            document.getElementById("li87").innerHTML=data.forecastDaily[3].forecastHourly[10].windSpd+"km/h";
            document.getElementById("li88").innerHTML=data.forecastDaily[3].forecastHourly[10].windSc;

            document.getElementById("li89").innerHTML=data.forecastDaily[3].forecastHourly[11].gap;
             document.getElementById("li90").innerHTML=data.forecastDaily[3].forecastHourly[11].tmp+"°";
            document.getElementById("li91").innerHTML=data.forecastDaily[3].forecastHourly[11].hum+"%";
            document.getElementById("li92").innerHTML=data.forecastDaily[3].forecastHourly[11].pres+"hpa";
            document.getElementById("li93").innerHTML=data.forecastDaily[3].forecastHourly[11].pop+"%";
            document.getElementById("li94").innerHTML=data.forecastDaily[3].forecastHourly[11].windDir;
            document.getElementById("li95").innerHTML=data.forecastDaily[3].forecastHourly[11].windSpd+"km/h";
            document.getElementById("li96").innerHTML=data.forecastDaily[3].forecastHourly[11].windSc;

            document.getElementById("li97").innerHTML=data.forecastDaily[3].forecastHourly[12].gap;
             document.getElementById("li98").innerHTML=data.forecastDaily[3].forecastHourly[12].tmp+"°";
            document.getElementById("li99").innerHTML=data.forecastDaily[3].forecastHourly[12].hum+"%";
            document.getElementById("li100").innerHTML=data.forecastDaily[3].forecastHourly[12].pres+"hpa";
            document.getElementById("li101").innerHTML=data.forecastDaily[3].forecastHourly[12].pop+"%";
            document.getElementById("li102").innerHTML=data.forecastDaily[3].forecastHourly[12].windDir;
            document.getElementById("li103").innerHTML=data.forecastDaily[3].forecastHourly[12].windSpd+"km/h";
            document.getElementById("li104").innerHTML=data.forecastDaily[3].forecastHourly[12].windSc;

            document.getElementById("li105").innerHTML=data.forecastDaily[3].forecastHourly[13].gap;
             document.getElementById("li106").innerHTML=data.forecastDaily[3].forecastHourly[13].tmp+"°";
            document.getElementById("li107").innerHTML=data.forecastDaily[3].forecastHourly[13].hum+"%";
            document.getElementById("li108").innerHTML=data.forecastDaily[3].forecastHourly[13].pres+"hpa";
            document.getElementById("li109").innerHTML=data.forecastDaily[3].forecastHourly[13].pop+"%";
            document.getElementById("li110").innerHTML=data.forecastDaily[3].forecastHourly[13].windDir;
            document.getElementById("li111").innerHTML=data.forecastDaily[3].forecastHourly[13].windSpd+"km/h";
            document.getElementById("li112").innerHTML=data.forecastDaily[3].forecastHourly[13].windSc;

            document.getElementById("li113").innerHTML=data.forecastDaily[3].forecastHourly[14].gap;
             document.getElementById("li114").innerHTML=data.forecastDaily[3].forecastHourly[14].tmp+"°";
            document.getElementById("li115").innerHTML=data.forecastDaily[3].forecastHourly[14].hum+"%";
            document.getElementById("li116").innerHTML=data.forecastDaily[3].forecastHourly[14].pres+"hpa";
            document.getElementById("li117").innerHTML=data.forecastDaily[3].forecastHourly[14].pop+"%";
            document.getElementById("li118").innerHTML=data.forecastDaily[3].forecastHourly[14].windDir;
            document.getElementById("li119").innerHTML=data.forecastDaily[3].forecastHourly[14].windSpd+"km/h";
            document.getElementById("li120").innerHTML=data.forecastDaily[3].forecastHourly[14].windSc;

            document.getElementById("li121").innerHTML=data.forecastDaily[3].forecastHourly[15].gap;
             document.getElementById("li122").innerHTML=data.forecastDaily[3].forecastHourly[15].tmp+"°";
            document.getElementById("li123").innerHTML=data.forecastDaily[3].forecastHourly[15].hum+"%";
            document.getElementById("li124").innerHTML=data.forecastDaily[3].forecastHourly[15].pres+"hpa";
            document.getElementById("li125").innerHTML=data.forecastDaily[3].forecastHourly[15].pop+"%";
            document.getElementById("li126").innerHTML=data.forecastDaily[3].forecastHourly[15].windDir;
            document.getElementById("li127").innerHTML=data.forecastDaily[3].forecastHourly[15].windSpd+"km/h";
            document.getElementById("li128").innerHTML=data.forecastDaily[3].forecastHourly[15].windSc;

            document.getElementById("li129").innerHTML=data.forecastDaily[3].forecastHourly[16].gap;
             document.getElementById("li130").innerHTML=data.forecastDaily[3].forecastHourly[16].tmp+"°";
            document.getElementById("li131").innerHTML=data.forecastDaily[3].forecastHourly[16].hum+"%";
            document.getElementById("li132").innerHTML=data.forecastDaily[3].forecastHourly[16].pres+"hpa";
            document.getElementById("li133").innerHTML=data.forecastDaily[3].forecastHourly[16].pop+"%";
            document.getElementById("li134").innerHTML=data.forecastDaily[3].forecastHourly[16].windDir;
            document.getElementById("li135").innerHTML=data.forecastDaily[3].forecastHourly[16].windSpd+"km/h";
            document.getElementById("li136").innerHTML=data.forecastDaily[3].forecastHourly[16].windSc;

            document.getElementById("li137").innerHTML=data.forecastDaily[3].forecastHourly[17].gap;
             document.getElementById("li138").innerHTML=data.forecastDaily[3].forecastHourly[17].tmp+"°";
            document.getElementById("li139").innerHTML=data.forecastDaily[3].forecastHourly[17].hum+"%";
            document.getElementById("li140").innerHTML=data.forecastDaily[3].forecastHourly[17].pres+"hpa";
            document.getElementById("li141").innerHTML=data.forecastDaily[3].forecastHourly[17].pop+"%";
            document.getElementById("li142").innerHTML=data.forecastDaily[3].forecastHourly[17].windDir;
            document.getElementById("li143").innerHTML=data.forecastDaily[3].forecastHourly[17].windSpd+"km/h";
            document.getElementById("li144").innerHTML=data.forecastDaily[3].forecastHourly[17].windSc;

            document.getElementById("li145").innerHTML=data.forecastDaily[3].forecastHourly[18].gap;
             document.getElementById("li146").innerHTML=data.forecastDaily[3].forecastHourly[18].tmp+"°";
            document.getElementById("li147").innerHTML=data.forecastDaily[3].forecastHourly[18].hum+"%";
            document.getElementById("li148").innerHTML=data.forecastDaily[3].forecastHourly[18].pres+"hpa";
            document.getElementById("li149").innerHTML=data.forecastDaily[3].forecastHourly[18].pop+"%";
            document.getElementById("li150").innerHTML=data.forecastDaily[3].forecastHourly[18].windDir;
            document.getElementById("li151").innerHTML=data.forecastDaily[3].forecastHourly[18].windSpd+"km/h";
            document.getElementById("li152").innerHTML=data.forecastDaily[3].forecastHourly[18].windSc;

            document.getElementById("li153").innerHTML=data.forecastDaily[3].forecastHourly[19].gap;
             document.getElementById("li154").innerHTML=data.forecastDaily[3].forecastHourly[19].tmp+"°";
            document.getElementById("li155").innerHTML=data.forecastDaily[3].forecastHourly[19].hum+"%";
            document.getElementById("li156").innerHTML=data.forecastDaily[3].forecastHourly[19].pres+"hpa";
            document.getElementById("li157").innerHTML=data.forecastDaily[3].forecastHourly[19].pop+"%";
            document.getElementById("li158").innerHTML=data.forecastDaily[3].forecastHourly[19].windDir;
            document.getElementById("li159").innerHTML=data.forecastDaily[3].forecastHourly[19].windSpd+"km/h";
            document.getElementById("li160").innerHTML=data.forecastDaily[3].forecastHourly[19].windSc;

            document.getElementById("li161").innerHTML=data.forecastDaily[3].forecastHourly[20].gap;
             document.getElementById("li162").innerHTML=data.forecastDaily[3].forecastHourly[20].tmp+"°";
            document.getElementById("li163").innerHTML=data.forecastDaily[3].forecastHourly[20].hum+"%";
            document.getElementById("li164").innerHTML=data.forecastDaily[3].forecastHourly[20].pres+"hpa";
            document.getElementById("li165").innerHTML=data.forecastDaily[3].forecastHourly[20].pop+"%";
            document.getElementById("li166").innerHTML=data.forecastDaily[3].forecastHourly[20].windDir;
            document.getElementById("li167").innerHTML=data.forecastDaily[3].forecastHourly[20].windSpd+"km/h";
            document.getElementById("li168").innerHTML=data.forecastDaily[3].forecastHourly[20].windSc;

            document.getElementById("li169").innerHTML=data.forecastDaily[3].forecastHourly[21].gap;
             document.getElementById("li170").innerHTML=data.forecastDaily[3].forecastHourly[21].tmp+"°";
            document.getElementById("li171").innerHTML=data.forecastDaily[3].forecastHourly[21].hum+"%";
            document.getElementById("li172").innerHTML=data.forecastDaily[3].forecastHourly[21].pres+"hpa";
            document.getElementById("li173").innerHTML=data.forecastDaily[3].forecastHourly[21].pop+"%";
            document.getElementById("li174").innerHTML=data.forecastDaily[3].forecastHourly[21].windDir;
            document.getElementById("li175").innerHTML=data.forecastDaily[3].forecastHourly[21].windSpd+"km/h";
            document.getElementById("li176").innerHTML=data.forecastDaily[3].forecastHourly[21].windSc;

            document.getElementById("li177").innerHTML=data.forecastDaily[3].forecastHourly[22].gap;
             document.getElementById("li178").innerHTML=data.forecastDaily[3].forecastHourly[22].tmp+"°";
            document.getElementById("li179").innerHTML=data.forecastDaily[3].forecastHourly[22].hum+"%";
            document.getElementById("li180").innerHTML=data.forecastDaily[3].forecastHourly[22].pres+"hpa";
            document.getElementById("li181").innerHTML=data.forecastDaily[3].forecastHourly[22].pop+"%";
            document.getElementById("li182").innerHTML=data.forecastDaily[3].forecastHourly[22].windDir;
            document.getElementById("li183").innerHTML=data.forecastDaily[3].forecastHourly[22].windSpd+"km/h";
            document.getElementById("li184").innerHTML=data.forecastDaily[3].forecastHourly[22].windSc;

            document.getElementById("li185").innerHTML=data.forecastDaily[3].forecastHourly[23].gap;
             document.getElementById("li186").innerHTML=data.forecastDaily[3].forecastHourly[23].tmp+"°";
            document.getElementById("li187").innerHTML=data.forecastDaily[3].forecastHourly[23].hum+"%";
            document.getElementById("li188").innerHTML=data.forecastDaily[3].forecastHourly[23].pres+"hpa";
            document.getElementById("li189").innerHTML=data.forecastDaily[3].forecastHourly[23].pop+"%";
            document.getElementById("li190").innerHTML=data.forecastDaily[3].forecastHourly[23].windDir;
            document.getElementById("li191").innerHTML=data.forecastDaily[3].forecastHourly[23].windSpd+"km/h";
            document.getElementById("li192").innerHTML=data.forecastDaily[3].forecastHourly[23].windSc;




            


            // var th=parseInt(myDate.getHours()),i=0,k=0,b=0;
          
            //   var ulli= document.getElementById("contain-table").getElementsByTagName('ul');
            // var c=ulli[i].getElementsByTagName("li");
            // [0].innerHTML=data.forecastDaily[k].forecastHourly[i].gap;}
            }
          else {
            alert("发生错误：" + request.status);
         }
      } 
   }
         var request = new XMLHttpRequest();
   request.open("GET", "http://dev.lanbaoo.com/api/weather/forecast?lat=0&lng=0&city&cityId=CN101270101" ,true);
   request.send();
   request.onreadystatechange = function() {
      if (request.readyState===4) {
         if (request.status===200) { 
            var data = JSON.parse(request.responseText);
            // if (data.id) { 
            //  alert(data.city);
               
               
            // } else {
            //     alert("出现错误：") ;
            // }
            document.getElementById("zt2").innerHTML=data.forecastDaily[6].phaseName;
            document.getElementById("zt3").innerHTML=data.forecastDaily[6].tideName;
            document.getElementById("pt1").innerHTML=data.forecastDaily[6].presTime.split(",")[0];
            document.getElementById("pt3").innerHTML=data.forecastDaily[6].presTime.split(",")[1];
            document.getElementById("pt5").innerHTML=data.forecastDaily[6].presTime.split(",")[2];
            document.getElementById("pt7").innerHTML=data.forecastDaily[6].presTime.split(",")[3];
            document.getElementById("pt2").innerHTML=data.forecastDaily[6].presValue.split(",")[0];
            document.getElementById("pt4").innerHTML=data.forecastDaily[6].presValue.split(",")[1];
            document.getElementById("pt6").innerHTML=data.forecastDaily[6].presValue.split(",")[2];
            document.getElementById("pt8").innerHTML=data.forecastDaily[6].presValue.split(",")[3];
             document.getElementById("cl1").innerHTML=data.forecastDaily[6].sunrise.split(":")[0]+":"+data.forecastDaily[6].sunrise.split(":")[1];
            document.getElementById("cl2").innerHTML=data.forecastDaily[6].sunset.split(":")[0]+":"+data.forecastDaily[6].sunset.split(":")[1];
            document.getElementById("li1").innerHTML=data.forecastDaily[6].forecastHourly[0].gap;
             document.getElementById("li2").innerHTML=data.forecastDaily[6].forecastHourly[0].tmp+"°";
            document.getElementById("li3").innerHTML=data.forecastDaily[6].forecastHourly[0].hum+"%";
            document.getElementById("li4").innerHTML=data.forecastDaily[6].forecastHourly[0].pres+"hpa";
            document.getElementById("li5").innerHTML=data.forecastDaily[6].forecastHourly[0].pop+"%";
            document.getElementById("li6").innerHTML=data.forecastDaily[6].forecastHourly[0].windDir;
            document.getElementById("li7").innerHTML=data.forecastDaily[6].forecastHourly[0].windSpd+"km/h";
            document.getElementById("li8").innerHTML=data.forecastDaily[6].forecastHourly[0].windSc;

            document.getElementById("li9").innerHTML=data.forecastDaily[6].forecastHourly[1].gap;
             document.getElementById("li10").innerHTML=data.forecastDaily[6].forecastHourly[1].tmp+"°";
            document.getElementById("li11").innerHTML=data.forecastDaily[6].forecastHourly[1].hum+"%";
            document.getElementById("li12").innerHTML=data.forecastDaily[6].forecastHourly[1].pres+"hpa";
            document.getElementById("li13").innerHTML=data.forecastDaily[6].forecastHourly[1].pop+"%";
            document.getElementById("li14").innerHTML=data.forecastDaily[6].forecastHourly[1].windDir;
            document.getElementById("li15").innerHTML=data.forecastDaily[6].forecastHourly[1].windSpd+"km/h";
            document.getElementById("li16").innerHTML=data.forecastDaily[6].forecastHourly[1].windSc;

            document.getElementById("li17").innerHTML=data.forecastDaily[6].forecastHourly[2].gap;
             document.getElementById("li18").innerHTML=data.forecastDaily[6].forecastHourly[2].tmp+"°";
            document.getElementById("li19").innerHTML=data.forecastDaily[6].forecastHourly[2].hum+"%";
            document.getElementById("li20").innerHTML=data.forecastDaily[6].forecastHourly[2].pres+"hpa";
            document.getElementById("li21").innerHTML=data.forecastDaily[6].forecastHourly[2].pop+"%";
            document.getElementById("li22").innerHTML=data.forecastDaily[6].forecastHourly[2].windDir;
            document.getElementById("li23").innerHTML=data.forecastDaily[6].forecastHourly[2].windSpd+"km/h";
            document.getElementById("li24").innerHTML=data.forecastDaily[6].forecastHourly[2].windSc;

            document.getElementById("li25").innerHTML=data.forecastDaily[6].forecastHourly[3].gap;
             document.getElementById("li26").innerHTML=data.forecastDaily[6].forecastHourly[3].tmp+"°";
            document.getElementById("li27").innerHTML=data.forecastDaily[6].forecastHourly[3].hum+"%";
            document.getElementById("li28").innerHTML=data.forecastDaily[6].forecastHourly[3].pres+"hpa";
            document.getElementById("li29").innerHTML=data.forecastDaily[6].forecastHourly[3].pop+"%";
            document.getElementById("li30").innerHTML=data.forecastDaily[6].forecastHourly[3].windDir;
            document.getElementById("li31").innerHTML=data.forecastDaily[6].forecastHourly[3].windSpd+"km/h";
            document.getElementById("li32").innerHTML=data.forecastDaily[6].forecastHourly[3].windSc;

            document.getElementById("li33").innerHTML=data.forecastDaily[6].forecastHourly[4].gap;
             document.getElementById("li34").innerHTML=data.forecastDaily[6].forecastHourly[4].tmp+"°";
            document.getElementById("li35").innerHTML=data.forecastDaily[6].forecastHourly[4].hum+"%";
            document.getElementById("li36").innerHTML=data.forecastDaily[6].forecastHourly[4].pres+"hpa";
            document.getElementById("li37").innerHTML=data.forecastDaily[6].forecastHourly[4].pop+"%";
            document.getElementById("li38").innerHTML=data.forecastDaily[6].forecastHourly[4].windDir;
            document.getElementById("li39").innerHTML=data.forecastDaily[6].forecastHourly[4].windSpd+"km/h";
            document.getElementById("li40").innerHTML=data.forecastDaily[6].forecastHourly[4].windSc;

            document.getElementById("li41").innerHTML=data.forecastDaily[6].forecastHourly[5].gap;
             document.getElementById("li42").innerHTML=data.forecastDaily[6].forecastHourly[5].tmp+"°";
            document.getElementById("li43").innerHTML=data.forecastDaily[6].forecastHourly[5].hum+"%";
            document.getElementById("li44").innerHTML=data.forecastDaily[6].forecastHourly[5].pres+"hpa";
            document.getElementById("li45").innerHTML=data.forecastDaily[6].forecastHourly[5].pop+"%";
            document.getElementById("li46").innerHTML=data.forecastDaily[6].forecastHourly[5].windDir;
            document.getElementById("li47").innerHTML=data.forecastDaily[6].forecastHourly[5].windSpd+"km/h";
            document.getElementById("li48").innerHTML=data.forecastDaily[6].forecastHourly[5].windSc;

            document.getElementById("li49").innerHTML=data.forecastDaily[6].forecastHourly[6].gap;
             document.getElementById("li50").innerHTML=data.forecastDaily[6].forecastHourly[6].tmp+"°";
            document.getElementById("li51").innerHTML=data.forecastDaily[6].forecastHourly[6].hum+"%";
            document.getElementById("li52").innerHTML=data.forecastDaily[6].forecastHourly[6].pres+"hpa";
            document.getElementById("li53").innerHTML=data.forecastDaily[6].forecastHourly[6].pop+"%";
            document.getElementById("li54").innerHTML=data.forecastDaily[6].forecastHourly[6].windDir;
            document.getElementById("li55").innerHTML=data.forecastDaily[6].forecastHourly[6].windSpd+"km/h";
            document.getElementById("li56").innerHTML=data.forecastDaily[6].forecastHourly[6].windSc;

            document.getElementById("li57").innerHTML=data.forecastDaily[6].forecastHourly[7].gap;
             document.getElementById("li58").innerHTML=data.forecastDaily[6].forecastHourly[7].tmp+"°";
            document.getElementById("li59").innerHTML=data.forecastDaily[6].forecastHourly[7].hum+"%";
            document.getElementById("li60").innerHTML=data.forecastDaily[6].forecastHourly[7].pres+"hpa";
            document.getElementById("li61").innerHTML=data.forecastDaily[6].forecastHourly[7].pop+"%";
            document.getElementById("li62").innerHTML=data.forecastDaily[6].forecastHourly[7].windDir;
            document.getElementById("li63").innerHTML=data.forecastDaily[6].forecastHourly[7].windSpd+"km/h";
            document.getElementById("li64").innerHTML=data.forecastDaily[6].forecastHourly[7].windSc;

            document.getElementById("li65").innerHTML=data.forecastDaily[6].forecastHourly[8].gap;
             document.getElementById("li66").innerHTML=data.forecastDaily[6].forecastHourly[8].tmp+"°";
            document.getElementById("li67").innerHTML=data.forecastDaily[6].forecastHourly[8].hum+"%";
            document.getElementById("li68").innerHTML=data.forecastDaily[6].forecastHourly[8].pres+"hpa";
            document.getElementById("li69").innerHTML=data.forecastDaily[6].forecastHourly[8].pop+"%";
            document.getElementById("li70").innerHTML=data.forecastDaily[6].forecastHourly[8].windDir;
            document.getElementById("li71").innerHTML=data.forecastDaily[6].forecastHourly[8].windSpd+"km/h";
            document.getElementById("li72").innerHTML=data.forecastDaily[6].forecastHourly[8].windSc;

            document.getElementById("li73").innerHTML=data.forecastDaily[6].forecastHourly[9].gap;
             document.getElementById("li74").innerHTML=data.forecastDaily[6].forecastHourly[9].tmp+"°";
            document.getElementById("li75").innerHTML=data.forecastDaily[6].forecastHourly[9].hum+"%";
            document.getElementById("li76").innerHTML=data.forecastDaily[6].forecastHourly[9].pres+"hpa";
            document.getElementById("li77").innerHTML=data.forecastDaily[6].forecastHourly[9].pop+"%";
            document.getElementById("li78").innerHTML=data.forecastDaily[6].forecastHourly[9].windDir;
            document.getElementById("li79").innerHTML=data.forecastDaily[6].forecastHourly[9].windSpd+"km/h";
            document.getElementById("li80").innerHTML=data.forecastDaily[6].forecastHourly[9].windSc;

            document.getElementById("li81").innerHTML=data.forecastDaily[6].forecastHourly[10].gap;
             document.getElementById("li82").innerHTML=data.forecastDaily[6].forecastHourly[10].tmp+"°";
            document.getElementById("li83").innerHTML=data.forecastDaily[6].forecastHourly[10].hum+"%";
            document.getElementById("li84").innerHTML=data.forecastDaily[6].forecastHourly[10].pres+"hpa";
            document.getElementById("li85").innerHTML=data.forecastDaily[6].forecastHourly[10].pop+"%";
            document.getElementById("li86").innerHTML=data.forecastDaily[6].forecastHourly[10].windDir;
            document.getElementById("li87").innerHTML=data.forecastDaily[6].forecastHourly[10].windSpd+"km/h";
            document.getElementById("li88").innerHTML=data.forecastDaily[6].forecastHourly[10].windSc;

            document.getElementById("li89").innerHTML=data.forecastDaily[6].forecastHourly[11].gap;
             document.getElementById("li90").innerHTML=data.forecastDaily[6].forecastHourly[11].tmp+"°";
            document.getElementById("li91").innerHTML=data.forecastDaily[6].forecastHourly[11].hum+"%";
            document.getElementById("li92").innerHTML=data.forecastDaily[6].forecastHourly[11].pres+"hpa";
            document.getElementById("li93").innerHTML=data.forecastDaily[6].forecastHourly[11].pop+"%";
            document.getElementById("li94").innerHTML=data.forecastDaily[6].forecastHourly[11].windDir;
            document.getElementById("li95").innerHTML=data.forecastDaily[6].forecastHourly[11].windSpd+"km/h";
            document.getElementById("li96").innerHTML=data.forecastDaily[6].forecastHourly[11].windSc;

            document.getElementById("li97").innerHTML=data.forecastDaily[6].forecastHourly[12].gap;
             document.getElementById("li98").innerHTML=data.forecastDaily[6].forecastHourly[12].tmp+"°";
            document.getElementById("li99").innerHTML=data.forecastDaily[6].forecastHourly[12].hum+"%";
            document.getElementById("li100").innerHTML=data.forecastDaily[6].forecastHourly[12].pres+"hpa";
            document.getElementById("li101").innerHTML=data.forecastDaily[6].forecastHourly[12].pop+"%";
            document.getElementById("li102").innerHTML=data.forecastDaily[6].forecastHourly[12].windDir;
            document.getElementById("li103").innerHTML=data.forecastDaily[6].forecastHourly[12].windSpd+"km/h";
            document.getElementById("li104").innerHTML=data.forecastDaily[6].forecastHourly[12].windSc;

            document.getElementById("li105").innerHTML=data.forecastDaily[6].forecastHourly[13].gap;
             document.getElementById("li106").innerHTML=data.forecastDaily[6].forecastHourly[13].tmp+"°";
            document.getElementById("li107").innerHTML=data.forecastDaily[6].forecastHourly[13].hum+"%";
            document.getElementById("li108").innerHTML=data.forecastDaily[6].forecastHourly[13].pres+"hpa";
            document.getElementById("li109").innerHTML=data.forecastDaily[6].forecastHourly[13].pop+"%";
            document.getElementById("li110").innerHTML=data.forecastDaily[6].forecastHourly[13].windDir;
            document.getElementById("li111").innerHTML=data.forecastDaily[6].forecastHourly[13].windSpd+"km/h";
            document.getElementById("li112").innerHTML=data.forecastDaily[6].forecastHourly[13].windSc;

            document.getElementById("li113").innerHTML=data.forecastDaily[6].forecastHourly[14].gap;
             document.getElementById("li114").innerHTML=data.forecastDaily[6].forecastHourly[14].tmp+"°";
            document.getElementById("li115").innerHTML=data.forecastDaily[6].forecastHourly[14].hum+"%";
            document.getElementById("li116").innerHTML=data.forecastDaily[6].forecastHourly[14].pres+"hpa";
            document.getElementById("li117").innerHTML=data.forecastDaily[6].forecastHourly[14].pop+"%";
            document.getElementById("li118").innerHTML=data.forecastDaily[6].forecastHourly[14].windDir;
            document.getElementById("li119").innerHTML=data.forecastDaily[6].forecastHourly[14].windSpd+"km/h";
            document.getElementById("li120").innerHTML=data.forecastDaily[6].forecastHourly[14].windSc;

            document.getElementById("li121").innerHTML=data.forecastDaily[6].forecastHourly[15].gap;
             document.getElementById("li122").innerHTML=data.forecastDaily[6].forecastHourly[15].tmp+"°";
            document.getElementById("li123").innerHTML=data.forecastDaily[6].forecastHourly[15].hum+"%";
            document.getElementById("li124").innerHTML=data.forecastDaily[6].forecastHourly[15].pres+"hpa";
            document.getElementById("li125").innerHTML=data.forecastDaily[6].forecastHourly[15].pop+"%";
            document.getElementById("li126").innerHTML=data.forecastDaily[6].forecastHourly[15].windDir;
            document.getElementById("li127").innerHTML=data.forecastDaily[6].forecastHourly[15].windSpd+"km/h";
            document.getElementById("li128").innerHTML=data.forecastDaily[6].forecastHourly[15].windSc;

            document.getElementById("li129").innerHTML=data.forecastDaily[6].forecastHourly[16].gap;
             document.getElementById("li130").innerHTML=data.forecastDaily[6].forecastHourly[16].tmp+"°";
            document.getElementById("li131").innerHTML=data.forecastDaily[6].forecastHourly[16].hum+"%";
            document.getElementById("li132").innerHTML=data.forecastDaily[6].forecastHourly[16].pres+"hpa";
            document.getElementById("li133").innerHTML=data.forecastDaily[6].forecastHourly[16].pop+"%";
            document.getElementById("li134").innerHTML=data.forecastDaily[6].forecastHourly[16].windDir;
            document.getElementById("li135").innerHTML=data.forecastDaily[6].forecastHourly[16].windSpd+"km/h";
            document.getElementById("li136").innerHTML=data.forecastDaily[6].forecastHourly[16].windSc;

            document.getElementById("li137").innerHTML=data.forecastDaily[6].forecastHourly[17].gap;
             document.getElementById("li138").innerHTML=data.forecastDaily[6].forecastHourly[17].tmp+"°";
            document.getElementById("li139").innerHTML=data.forecastDaily[6].forecastHourly[17].hum+"%";
            document.getElementById("li140").innerHTML=data.forecastDaily[6].forecastHourly[17].pres+"hpa";
            document.getElementById("li141").innerHTML=data.forecastDaily[6].forecastHourly[17].pop+"%";
            document.getElementById("li142").innerHTML=data.forecastDaily[6].forecastHourly[17].windDir;
            document.getElementById("li143").innerHTML=data.forecastDaily[6].forecastHourly[17].windSpd+"km/h";
            document.getElementById("li144").innerHTML=data.forecastDaily[6].forecastHourly[17].windSc;

            document.getElementById("li145").innerHTML=data.forecastDaily[6].forecastHourly[18].gap;
             document.getElementById("li146").innerHTML=data.forecastDaily[6].forecastHourly[18].tmp+"°";
            document.getElementById("li147").innerHTML=data.forecastDaily[6].forecastHourly[18].hum+"%";
            document.getElementById("li148").innerHTML=data.forecastDaily[6].forecastHourly[18].pres+"hpa";
            document.getElementById("li149").innerHTML=data.forecastDaily[6].forecastHourly[18].pop+"%";
            document.getElementById("li150").innerHTML=data.forecastDaily[6].forecastHourly[18].windDir;
            document.getElementById("li151").innerHTML=data.forecastDaily[6].forecastHourly[18].windSpd+"km/h";
            document.getElementById("li152").innerHTML=data.forecastDaily[6].forecastHourly[18].windSc;

            document.getElementById("li153").innerHTML=data.forecastDaily[6].forecastHourly[19].gap;
             document.getElementById("li154").innerHTML=data.forecastDaily[6].forecastHourly[19].tmp+"°";
            document.getElementById("li155").innerHTML=data.forecastDaily[6].forecastHourly[19].hum+"%";
            document.getElementById("li156").innerHTML=data.forecastDaily[6].forecastHourly[19].pres+"hpa";
            document.getElementById("li157").innerHTML=data.forecastDaily[6].forecastHourly[19].pop+"%";
            document.getElementById("li158").innerHTML=data.forecastDaily[6].forecastHourly[19].windDir;
            document.getElementById("li159").innerHTML=data.forecastDaily[6].forecastHourly[19].windSpd+"km/h";
            document.getElementById("li160").innerHTML=data.forecastDaily[6].forecastHourly[19].windSc;

            document.getElementById("li161").innerHTML=data.forecastDaily[6].forecastHourly[20].gap;
             document.getElementById("li162").innerHTML=data.forecastDaily[6].forecastHourly[20].tmp+"°";
            document.getElementById("li163").innerHTML=data.forecastDaily[6].forecastHourly[20].hum+"%";
            document.getElementById("li164").innerHTML=data.forecastDaily[6].forecastHourly[20].pres+"hpa";
            document.getElementById("li165").innerHTML=data.forecastDaily[6].forecastHourly[20].pop+"%";
            document.getElementById("li166").innerHTML=data.forecastDaily[6].forecastHourly[20].windDir;
            document.getElementById("li167").innerHTML=data.forecastDaily[6].forecastHourly[20].windSpd+"km/h";
            document.getElementById("li168").innerHTML=data.forecastDaily[6].forecastHourly[20].windSc;

            document.getElementById("li169").innerHTML=data.forecastDaily[6].forecastHourly[21].gap;
             document.getElementById("li170").innerHTML=data.forecastDaily[6].forecastHourly[21].tmp+"°";
            document.getElementById("li171").innerHTML=data.forecastDaily[6].forecastHourly[21].hum+"%";
            document.getElementById("li172").innerHTML=data.forecastDaily[6].forecastHourly[21].pres+"hpa";
            document.getElementById("li173").innerHTML=data.forecastDaily[6].forecastHourly[21].pop+"%";
            document.getElementById("li174").innerHTML=data.forecastDaily[6].forecastHourly[21].windDir;
            document.getElementById("li175").innerHTML=data.forecastDaily[6].forecastHourly[21].windSpd+"km/h";
            document.getElementById("li176").innerHTML=data.forecastDaily[6].forecastHourly[21].windSc;

            document.getElementById("li177").innerHTML=data.forecastDaily[6].forecastHourly[22].gap;
             document.getElementById("li178").innerHTML=data.forecastDaily[6].forecastHourly[22].tmp+"°";
            document.getElementById("li179").innerHTML=data.forecastDaily[6].forecastHourly[22].hum+"%";
            document.getElementById("li180").innerHTML=data.forecastDaily[6].forecastHourly[22].pres+"hpa";
            document.getElementById("li181").innerHTML=data.forecastDaily[6].forecastHourly[22].pop+"%";
            document.getElementById("li182").innerHTML=data.forecastDaily[6].forecastHourly[22].windDir;
            document.getElementById("li183").innerHTML=data.forecastDaily[6].forecastHourly[22].windSpd+"km/h";
            document.getElementById("li184").innerHTML=data.forecastDaily[6].forecastHourly[22].windSc;

            document.getElementById("li185").innerHTML=data.forecastDaily[6].forecastHourly[23].gap;
             document.getElementById("li186").innerHTML=data.forecastDaily[6].forecastHourly[23].tmp+"°";
            document.getElementById("li187").innerHTML=data.forecastDaily[6].forecastHourly[23].hum+"%";
            document.getElementById("li188").innerHTML=data.forecastDaily[6].forecastHourly[23].pres+"hpa";
            document.getElementById("li189").innerHTML=data.forecastDaily[6].forecastHourly[23].pop+"%";
            document.getElementById("li190").innerHTML=data.forecastDaily[6].forecastHourly[23].windDir;
            document.getElementById("li191").innerHTML=data.forecastDaily[6].forecastHourly[23].windSpd+"km/h";
            document.getElementById("li192").innerHTML=data.forecastDaily[6].forecastHourly[23].windSc;




            


            // var th=parseInt(myDate.getHours()),i=0,k=0,b=0;
          
            //   var ulli= document.getElementById("contain-table").getElementsByTagName('ul');
            // var c=ulli[i].getElementsByTagName("li");
            // [0].innerHTML=data.forecastDaily[k].forecastHourly[i].gap;}
            }
          else {
            alert("发生错误：" + request.status);
         }
      } 
   }

       document.getElementById('six').style.color="#72cff1";
       document.getElementById('seven').style.color="black";
       document.getElementById('one').style.color="black";
       document.getElementById('two').style.color="black";
       document.getElementById('three').style.color="black";
       document.getElementById('four').style.color="black";
       document.getElementById('five').style.color="black";
       document.getElementById('pic').style.position="relative";
       document.getElementById('pic').style.left="13.2rem";
        break;
	}

})


}

}
//ajax获取后端数据
